From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Aneesh Kumar K.V" Subject: [PATCH -V9 6/9] ext4: Copy fs UUID to superblock Date: Tue, 18 May 2010 17:30:12 +0530 Message-ID: <1274184015-19207-7-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <1274184015-19207-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Cc: linux-fsdevel@vger.kernel.org, sfrench@us.ibm.com, philippe.deniel@CEA.FR, linux-kernel@vger.kernel.org, "Aneesh Kumar K.V" To: hch@infradead.org, viro@zeniv.linux.org.uk, adilger@sun.com, corbet@lwn.net, serue@us.ibm.com, neilb@suse.de Return-path: Received: from e23smtp04.au.ibm.com ([202.81.31.146]:34321 "EHLO e23smtp04.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757267Ab0ERMAi (ORCPT ); Tue, 18 May 2010 08:00:38 -0400 In-Reply-To: <1274184015-19207-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: This enables userspace application to find the file system UUID using sys_name_to_handle_at syscall Acked-by: Serge Hallyn Signed-off-by: Aneesh Kumar K.V --- 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 e14d22c..02ba21b 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -2828,6 +2828,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.1.78.g212f0