summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAneesh Kumar K.V2011-01-29 14:13:39 +0100
committerAl Viro2011-03-15 07:21:45 +0100
commit03cb5f03dcb26846fcad345d8c15aae91579a53d (patch)
treecf95badfa17be432388dd75d975339954b7bcf50 /fs
parentvfs: Export file system uuid via /proc/<pid>/mountinfo (diff)
downloadkernel-qcow2-linux-03cb5f03dcb26846fcad345d8c15aae91579a53d.tar.gz
kernel-qcow2-linux-03cb5f03dcb26846fcad345d8c15aae91579a53d.tar.xz
kernel-qcow2-linux-03cb5f03dcb26846fcad345d8c15aae91579a53d.zip
ext3: Copy fs UUID to superblock.
File system UUID is made available to application via /proc/<pid>/mountinfo Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext3/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index 85c8cc8f2473..9cc19a1dea8e 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -1936,6 +1936,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
sb->s_qcop = &ext3_qctl_operations;
sb->dq_op = &ext3_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);