From 3f6a324767e549f6b286f1e64db32b25e08fc30f Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Wed, 3 Sep 2008 14:16:42 +0300 Subject: [PATCH] --- yaml --- r: 109723 b: refs/heads/master c: 7c7cbadf7341a0792879c67d6e3020f040d6cd7f h: refs/heads/master i: 109721: 3ec5b4e32cddd03af90f70b5af94b028899755ac 109719: daf533a16be653ce8f135d6c11cb85288f1e807b v: v3 --- [refs] | 2 +- trunk/fs/ubifs/super.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 7a19d0c2ab16..a645718b45f0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b3385c278d3c32aec68d4900b35bc07df1b2240c +refs/heads/master: 7c7cbadf7341a0792879c67d6e3020f040d6cd7f diff --git a/trunk/fs/ubifs/super.c b/trunk/fs/ubifs/super.c index 0dee4042c6c5..7562464ac83f 100644 --- a/trunk/fs/ubifs/super.c +++ b/trunk/fs/ubifs/super.c @@ -370,6 +370,7 @@ static int ubifs_statfs(struct dentry *dentry, struct kstatfs *buf) { struct ubifs_info *c = dentry->d_sb->s_fs_info; unsigned long long free; + __le32 *uuid = (__le32 *)c->uuid; free = ubifs_get_free_space(c); dbg_gen("free space %lld bytes (%lld blocks)", @@ -386,8 +387,8 @@ static int ubifs_statfs(struct dentry *dentry, struct kstatfs *buf) buf->f_files = 0; buf->f_ffree = 0; buf->f_namelen = UBIFS_MAX_NLEN; - memcpy(&buf->f_fsid, c->uuid, sizeof(__kernel_fsid_t)); - + buf->f_fsid.val[0] = le32_to_cpu(uuid[0]) ^ le32_to_cpu(uuid[2]); + buf->f_fsid.val[1] = le32_to_cpu(uuid[1]) ^ le32_to_cpu(uuid[3]); return 0; }