From: Aneesh Kumar K.V Date: Sat, 29 Jan 2011 13:13:40 +0000 (+0530) Subject: ext4: Copy fs UUID to superblock X-Git-Tag: upstream/snapshot3+hdmi~11261^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2fa2ffc2046fdc35f96366d1ec8675f4d578522;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 f6a318f..5977b35 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);