From: Andrew Morton <akpm@osdl.org>
To: Pekka J Enberg <penberg@cs.helsinki.fi>,
Bryan Henderson <hbryan@us.ibm.com>,
Andries Brouwer <aebr@win.tue.nl>,
"H. Peter Anvin" <hpa@zytor.com>
Cc: sct@redhat.com, adilger@clusterfs.com,
linux-kernel@vger.kernel.org, ext2-devel@lists.sourceforge.net
Subject: Re: [PATCH] ext3: fsid for statvfs
Date: Tue, 10 Oct 2006 13:36:36 -0700 [thread overview]
Message-ID: <20061010133636.6217a11b.akpm@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0610101131001.10574@sbz-30.cs.Helsinki.FI>
On Tue, 10 Oct 2006 11:32:13 +0300 (EEST)
Pekka J Enberg <penberg@cs.helsinki.fi> wrote:
> From: Pekka Enberg <penberg@cs.helsinki.fi>
>
> Update ext3_statfs to return an FSID that is a 64 bit XOR of the 128 bit
> filesystem UUID as suggested by Andreas Dilger. See the following Bugzilla
> entry for details:
>
> http://bugzilla.kernel.org/show_bug.cgi?id=136
>
> Cc: Andreas Dilger <adilger@clusterfs.com>
> Cc: Stephen Tweedie <sct@redhat.com>
> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Deja vu. Gosh, has it really been four years?
Combatants cc'ed ;)
>
> fs/ext3/super.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> Index: 2.6/fs/ext3/super.c
> ===================================================================
> --- 2.6.orig/fs/ext3/super.c
> +++ 2.6/fs/ext3/super.c
> @@ -2385,6 +2385,7 @@ static int ext3_statfs (struct dentry *
> struct ext3_super_block *es = sbi->s_es;
> ext3_fsblk_t overhead;
> int i;
> + u64 fsid;
>
> if (test_opt (sb, MINIX_DF))
> overhead = 0;
> @@ -2431,6 +2432,10 @@ static int ext3_statfs (struct dentry *
> buf->f_files = le32_to_cpu(es->s_inodes_count);
> buf->f_ffree = percpu_counter_sum(&sbi->s_freeinodes_counter);
> buf->f_namelen = EXT3_NAME_LEN;
> + fsid = le64_to_cpup((void *)es->s_uuid) ^
> + le64_to_cpup((void *)es->s_uuid + sizeof(u64));
> + buf->f_fsid.val[0] = fsid & 0xFFFFFFFFUL;
> + buf->f_fsid.val[1] = (fsid >> 32) & 0xFFFFFFFFUL;
> return 0;
> }
>
ext2 and ext4 would need patching too...
next prev parent reply other threads:[~2006-10-10 20:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-10 8:32 Pekka J Enberg
2006-10-10 20:36 ` Andrew Morton [this message]
2006-10-11 7:41 ` Pekka Enberg
2006-10-11 16:11 ` Stephen C. Tweedie
2006-10-23 11:10 ` Andries Brouwer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061010133636.6217a11b.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=adilger@clusterfs.com \
--cc=aebr@win.tue.nl \
--cc=ext2-devel@lists.sourceforge.net \
--cc=hbryan@us.ibm.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=penberg@cs.helsinki.fi \
--cc=sct@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®