From: Aneesh Kumar K.V Date: Sat, 29 Jan 2011 13:13:40 +0000 (+0530) Subject: ext4: Copy fs UUID to superblock X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f2fa2ffc2046fdc35f96366d1ec8675f4d578522;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git ext4: Copy fs UUID to superblock File system UUID is made available to application via /proc//mountinfo Signed-off-by: Aneesh Kumar K.V Signed-off-by: Al Viro --- diff --git a/fs/ext4/super.c b/fs/ext4/super.c index f6a318f836b2..5977b356a435 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -3415,6 +3415,8 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) sb->s_qcop = &ext4_qctl_operations; sb->dq_op = &ext4_quota_operations; #endif + memcpy(sb->s_uuid, es->s_uuid, sizeof(es->s_uuid)); + INIT_LIST_HEAD(&sbi->s_orphan); /* unlinked but open files */ mutex_init(&sbi->s_orphan_lock); mutex_init(&sbi->s_resize_lock);