* [PATCH] ecryptfs: set s_blocksize from lower fs in sb
@ 2007-12-14 15:30 Eric Sandeen
2007-12-14 15:43 ` Michael Halcrow
0 siblings, 1 reply; 2+ messages in thread
From: Eric Sandeen @ 2007-12-14 15:30 UTC (permalink / raw)
To: linux-kernel Mailing List, Andrew Morton, Michael Halcrow
eCryptfs wasn't setting s_blocksize in it's superblock; just pick
it up from the lower FS. Having an s_blocksize of 0 made things
like "filefrag" which call FIGETBSZ unhappy.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
Index: linux-2.6.24-rc3/fs/ecryptfs/main.c
===================================================================
--- linux-2.6.24-rc3.orig/fs/ecryptfs/main.c
+++ linux-2.6.24-rc3/fs/ecryptfs/main.c
@@ -523,6 +523,7 @@ static int ecryptfs_read_super(struct su
lower_mnt = nd.mnt;
ecryptfs_set_superblock_lower(sb, lower_root->d_sb);
sb->s_maxbytes = lower_root->d_sb->s_maxbytes;
+ sb->s_blocksize = lower_root->d_sb->s_blocksize;
ecryptfs_set_dentry_lower(sb->s_root, lower_root);
ecryptfs_set_dentry_lower_mnt(sb->s_root, lower_mnt);
rc = ecryptfs_interpose(lower_root, sb->s_root, sb, 0);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ecryptfs: set s_blocksize from lower fs in sb
2007-12-14 15:30 [PATCH] ecryptfs: set s_blocksize from lower fs in sb Eric Sandeen
@ 2007-12-14 15:43 ` Michael Halcrow
0 siblings, 0 replies; 2+ messages in thread
From: Michael Halcrow @ 2007-12-14 15:43 UTC (permalink / raw)
To: Eric Sandeen; +Cc: linux-kernel Mailing List, Andrew Morton
On Fri, Dec 14, 2007 at 09:30:26AM -0600, Eric Sandeen wrote:
> eCryptfs wasn't setting s_blocksize in it's superblock; just pick
> it up from the lower FS. Having an s_blocksize of 0 made things
> like "filefrag" which call FIGETBSZ unhappy.
>
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Acked-by: Mike Halcrow <mhalcrow@us.ibm.com>
>
> ---
>
> Index: linux-2.6.24-rc3/fs/ecryptfs/main.c
> ===================================================================
> --- linux-2.6.24-rc3.orig/fs/ecryptfs/main.c
> +++ linux-2.6.24-rc3/fs/ecryptfs/main.c
> @@ -523,6 +523,7 @@ static int ecryptfs_read_super(struct su
> lower_mnt = nd.mnt;
> ecryptfs_set_superblock_lower(sb, lower_root->d_sb);
> sb->s_maxbytes = lower_root->d_sb->s_maxbytes;
> + sb->s_blocksize = lower_root->d_sb->s_blocksize;
> ecryptfs_set_dentry_lower(sb->s_root, lower_root);
> ecryptfs_set_dentry_lower_mnt(sb->s_root, lower_mnt);
> rc = ecryptfs_interpose(lower_root, sb->s_root, sb, 0);
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-14 15:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-14 15:30 [PATCH] ecryptfs: set s_blocksize from lower fs in sb Eric Sandeen
2007-12-14 15:43 ` Michael Halcrow
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox