From 9b8a62bf0464c624fc55b3178f40c220b1746f15 Mon Sep 17 00:00:00 2001 From: Coly Li Date: Thu, 2 Apr 2009 16:59:35 -0700 Subject: [PATCH] --- yaml --- r: 139759 b: refs/heads/master c: 7dd2c000ff50c758c7abfa95f57c854e3aeba5e6 h: refs/heads/master i: 139757: 5565e205ac2ea102f77d3b663a7afbba7b78cfe4 139755: d3a5c2ea6e64408f0904a1ae76330d859a1230fd 139751: 20f1cd1c53cecd0723017b3649b8d1e38c34e155 139743: ab5938b203d82dca1be9c3f2181b45379f1b5593 v: v3 --- [refs] | 2 +- trunk/fs/hfs/super.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index c0fec40c6e30..0098c35aa884 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: aac49b7543c816a6e2c1581c5b5002e6a0cef3d1 +refs/heads/master: 7dd2c000ff50c758c7abfa95f57c854e3aeba5e6 diff --git a/trunk/fs/hfs/super.c b/trunk/fs/hfs/super.c index c8b5acf4b0b7..a36bb749926d 100644 --- a/trunk/fs/hfs/super.c +++ b/trunk/fs/hfs/super.c @@ -82,6 +82,7 @@ static void hfs_put_super(struct super_block *sb) static int hfs_statfs(struct dentry *dentry, struct kstatfs *buf) { struct super_block *sb = dentry->d_sb; + u64 id = huge_encode_dev(sb->s_bdev->bd_dev); buf->f_type = HFS_SUPER_MAGIC; buf->f_bsize = sb->s_blocksize; @@ -90,6 +91,8 @@ static int hfs_statfs(struct dentry *dentry, struct kstatfs *buf) buf->f_bavail = buf->f_bfree; buf->f_files = HFS_SB(sb)->fs_ablocks; buf->f_ffree = HFS_SB(sb)->free_ablocks; + buf->f_fsid.val[0] = (u32)id; + buf->f_fsid.val[1] = (u32)(id >> 32); buf->f_namelen = HFS_NAMELEN; return 0;