[PATCH -V17 12/12] ext4: Copy fs UUID to superblock

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Aneesh Kumar K.V
Date: Monday, July 19, 2010 - 12:12 pm

File system UUID is made available to application
via  /proc/<pid>/mountinfo

Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
---
 fs/ext4/super.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 4e8983a..f2bd1bc 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -2816,6 +2816,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);
-- 
1.7.2.rc3.43.g24e7a

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -V17 0/12] Generic name to handle and open by handl ..., Aneesh Kumar K.V, (Mon Jul 19, 12:11 pm)
[PATCH -V17 02/12] vfs: Add name to file handle conversion ..., Aneesh Kumar K.V, (Mon Jul 19, 12:11 pm)
[PATCH -V17 03/12] vfs: Add open by file handle support, Aneesh Kumar K.V, (Mon Jul 19, 12:11 pm)
[PATCH -V17 04/12] vfs: Allow handle based open on symlinks, Aneesh Kumar K.V, (Mon Jul 19, 12:11 pm)
[PATCH -V17 05/12] vfs: Support null pathname in readlink, Aneesh Kumar K.V, (Mon Jul 19, 12:12 pm)
[PATCH -V17 06/12] vfs: Support null pathname in faccessat, Aneesh Kumar K.V, (Mon Jul 19, 12:12 pm)
[PATCH -V17 07/12] vfs: Support null pathname in linkat, Aneesh Kumar K.V, (Mon Jul 19, 12:12 pm)
[PATCH -V17 08/12] x86: Add new syscalls for x86_32, Aneesh Kumar K.V, (Mon Jul 19, 12:12 pm)
[PATCH -V17 09/12] x86: Add new syscalls for x86_64, Aneesh Kumar K.V, (Mon Jul 19, 12:12 pm)
[PATCH -V17 10/12] vfs: Export file system uuid via /proc/ ..., Aneesh Kumar K.V, (Mon Jul 19, 12:12 pm)
[PATCH -V17 11/12] ext3: Copy fs UUID to superblock., Aneesh Kumar K.V, (Mon Jul 19, 12:12 pm)
[PATCH -V17 12/12] ext4: Copy fs UUID to superblock, Aneesh Kumar K.V, (Mon Jul 19, 12:12 pm)