* Re: linux-next: Tree for July 20 (overlayfs) @ 2011-07-20 18:48 Sedat Dilek 2011-07-20 19:28 ` Sedat Dilek 0 siblings, 1 reply; 5+ messages in thread From: Sedat Dilek @ 2011-07-20 18:48 UTC (permalink / raw) To: Miklos Szeredi Cc: Stephen Rothwell, linux-next, LKML, linux-fsdevel, Al Viro, Randy Dunlap [-- Attachment #1: Type: text/plain, Size: 975 bytes --] Hi, I have here a problem with linux-next (next-20110720) and overlayfs-v10 (not the latest from GIT). ### OVERLAYFS # Patches from mszeredi/vfs.git#overlayfs.v10 (up to commit 00b27467b181a27c808cef0d66860eba5f450b24) # "overlay: overlay filesystem documentation" # See also <http://lkml.org/lkml/2011/6/1/456> # "[PATCH 0/7] overlay filesystem: request for inclusion" + overlayfs-v10/overlayfs-v10.patch Documentation/filesystems/porting says: [mandatory] ->permission(), generic_permission() and ->check_acl() have lost flags argument; instead of passing IPERM_FLAG_RCU we add MAY_NOT_BLOCK into mask. generic_permission() has also lost the check_acl argument; if you want non-NULL to be used for that inode, put it into ->i_op->check_acl. I checked with other files below fs/ and changed accordingly. So, I hope the attached patch is OK (untested, uncompiled)? What's the status of OverlayFS anyway, will it be merged into v3.1? Regards, - Sedat - [-- Attachment #2: fs-overlayfs-inode.c.diff --] [-- Type: plain/text, Size: 600 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux-next: Tree for July 20 (overlayfs) 2011-07-20 18:48 linux-next: Tree for July 20 (overlayfs) Sedat Dilek @ 2011-07-20 19:28 ` Sedat Dilek 2011-07-22 9:51 ` Miklos Szeredi 0 siblings, 1 reply; 5+ messages in thread From: Sedat Dilek @ 2011-07-20 19:28 UTC (permalink / raw) To: Miklos Szeredi Cc: Stephen Rothwell, linux-next, LKML, linux-fsdevel, Al Viro, Randy Dunlap [-- Attachment #1: Type: text/plain, Size: 1320 bytes --] On Wed, Jul 20, 2011 at 8:48 PM, Sedat Dilek <sedat.dilek@googlemail.com> wrote: > Hi, > > I have here a problem with linux-next (next-20110720) and > overlayfs-v10 (not the latest from GIT). > > ### OVERLAYFS > # Patches from mszeredi/vfs.git#overlayfs.v10 (up to commit > 00b27467b181a27c808cef0d66860eba5f450b24) > # "overlay: overlay filesystem documentation" > # See also <http://lkml.org/lkml/2011/6/1/456> > # "[PATCH 0/7] overlay filesystem: request for inclusion" > + overlayfs-v10/overlayfs-v10.patch > > Documentation/filesystems/porting says: > > [mandatory] > ->permission(), generic_permission() and ->check_acl() have lost flags > argument; instead of passing IPERM_FLAG_RCU we add MAY_NOT_BLOCK into mask. > generic_permission() has also lost the check_acl argument; if you want > non-NULL to be used for that inode, put it into ->i_op->check_acl. > > I checked with other files below fs/ and changed accordingly. > So, I hope the attached patch is OK (untested, uncompiled)? > > What's the status of OverlayFS anyway, will it be merged into v3.1? > > Regards, > - Sedat - > I checked again and adapted ovl_permission(). [ fs/namei.c ] static int acl_permission_check(struct inode *inode, int mask) Here is a v2, which compiles. - Sedat - [-- Attachment #2: fs-overlayfs-inode.c-v2.diff --] [-- Type: plain/text, Size: 2185 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux-next: Tree for July 20 (overlayfs) 2011-07-20 19:28 ` Sedat Dilek @ 2011-07-22 9:51 ` Miklos Szeredi 2011-07-22 9:59 ` Sedat Dilek 2011-07-22 11:38 ` Sedat Dilek 0 siblings, 2 replies; 5+ messages in thread From: Miklos Szeredi @ 2011-07-22 9:51 UTC (permalink / raw) To: sedat.dilek Cc: Stephen Rothwell, linux-next, LKML, linux-fsdevel, Al Viro, Randy Dunlap Sedat Dilek <sedat.dilek@googlemail.com> writes: > On Wed, Jul 20, 2011 at 8:48 PM, Sedat Dilek <sedat.dilek@googlemail.com> wrote: >> Hi, >> >> I have here a problem with linux-next (next-20110720) and >> overlayfs-v10 (not the latest from GIT). >> >> ### OVERLAYFS >> # Patches from mszeredi/vfs.git#overlayfs.v10 (up to commit >> 00b27467b181a27c808cef0d66860eba5f450b24) >> # "overlay: overlay filesystem documentation" >> # See also <http://lkml.org/lkml/2011/6/1/456> >> # "[PATCH 0/7] overlay filesystem: request for inclusion" >> + overlayfs-v10/overlayfs-v10.patch >> >> Documentation/filesystems/porting says: >> >> [mandatory] >> ->permission(), generic_permission() and ->check_acl() have lost flags >> argument; instead of passing IPERM_FLAG_RCU we add MAY_NOT_BLOCK into mask. >> generic_permission() has also lost the check_acl argument; if you want >> non-NULL to be used for that inode, put it into ->i_op->check_acl. >> >> I checked with other files below fs/ and changed accordingly. >> So, I hope the attached patch is OK (untested, uncompiled)? >> >> What's the status of OverlayFS anyway, will it be merged into v3.1? >> >> Regards, >> - Sedat - >> > > I checked again and adapted ovl_permission(). > > [ fs/namei.c ] > static int acl_permission_check(struct inode *inode, int mask) > > Here is a v2, which compiles. Thanks, the patch looks good. And ->fsync is another one that will have an updated API. Miklos --- fs/overlayfs/readdir.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Index: linux-2.6/fs/overlayfs/readdir.c =================================================================== --- linux-2.6.orig/fs/overlayfs/readdir.c 2011-07-21 17:07:52.000000000 +0200 +++ linux-2.6/fs/overlayfs/readdir.c 2011-07-21 17:10:20.000000000 +0200 @@ -386,7 +386,8 @@ static loff_t ovl_dir_llseek(struct file return res; } -static int ovl_dir_fsync(struct file *file, int datasync) +static int ovl_dir_fsync(struct file *file, loff_t start, loff_t end, + int datasync) { struct ovl_dir_file *od = file->private_data; @@ -400,7 +401,7 @@ static int ovl_dir_fsync(struct file *fi return PTR_ERR(od->realfile); } - return vfs_fsync(od->realfile, datasync); + return vfs_fsync_range(od->realfile, start, end, datasync); } static int ovl_dir_release(struct inode *inode, struct file *file) ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux-next: Tree for July 20 (overlayfs) 2011-07-22 9:51 ` Miklos Szeredi @ 2011-07-22 9:59 ` Sedat Dilek 2011-07-22 11:38 ` Sedat Dilek 1 sibling, 0 replies; 5+ messages in thread From: Sedat Dilek @ 2011-07-22 9:59 UTC (permalink / raw) To: Miklos Szeredi Cc: Stephen Rothwell, linux-next, LKML, linux-fsdevel, Al Viro, Randy Dunlap On Fri, Jul 22, 2011 at 11:51 AM, Miklos Szeredi <miklos@szeredi.hu> wrote: > Sedat Dilek <sedat.dilek@googlemail.com> writes: > >> On Wed, Jul 20, 2011 at 8:48 PM, Sedat Dilek <sedat.dilek@googlemail.com> wrote: >>> Hi, >>> >>> I have here a problem with linux-next (next-20110720) and >>> overlayfs-v10 (not the latest from GIT). >>> >>> ### OVERLAYFS >>> # Patches from mszeredi/vfs.git#overlayfs.v10 (up to commit >>> 00b27467b181a27c808cef0d66860eba5f450b24) >>> # "overlay: overlay filesystem documentation" >>> # See also <http://lkml.org/lkml/2011/6/1/456> >>> # "[PATCH 0/7] overlay filesystem: request for inclusion" >>> + overlayfs-v10/overlayfs-v10.patch >>> >>> Documentation/filesystems/porting says: >>> >>> [mandatory] >>> ->permission(), generic_permission() and ->check_acl() have lost flags >>> argument; instead of passing IPERM_FLAG_RCU we add MAY_NOT_BLOCK into mask. >>> generic_permission() has also lost the check_acl argument; if you want >>> non-NULL to be used for that inode, put it into ->i_op->check_acl. >>> >>> I checked with other files below fs/ and changed accordingly. >>> So, I hope the attached patch is OK (untested, uncompiled)? >>> >>> What's the status of OverlayFS anyway, will it be merged into v3.1? >>> >>> Regards, >>> - Sedat - >>> >> >> I checked again and adapted ovl_permission(). >> >> [ fs/namei.c ] >> static int acl_permission_check(struct inode *inode, int mask) >> >> Here is a v2, which compiles. > > Thanks, the patch looks good. > > And ->fsync is another one that will have an updated API. > > Miklos > > --- > fs/overlayfs/readdir.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > Index: linux-2.6/fs/overlayfs/readdir.c > =================================================================== > --- linux-2.6.orig/fs/overlayfs/readdir.c 2011-07-21 17:07:52.000000000 +0200 > +++ linux-2.6/fs/overlayfs/readdir.c 2011-07-21 17:10:20.000000000 +0200 > @@ -386,7 +386,8 @@ static loff_t ovl_dir_llseek(struct file > return res; > } > > -static int ovl_dir_fsync(struct file *file, int datasync) > +static int ovl_dir_fsync(struct file *file, loff_t start, loff_t end, > + int datasync) > { > struct ovl_dir_file *od = file->private_data; > > @@ -400,7 +401,7 @@ static int ovl_dir_fsync(struct file *fi > return PTR_ERR(od->realfile); > } > > - return vfs_fsync(od->realfile, datasync); > + return vfs_fsync_range(od->realfile, start, end, datasync); > } > > static int ovl_dir_release(struct inode *inode, struct file *file) > Hi Miklos, cool, thanks. I have renamed my patch in the meanwhile to "ovl-Fix-ovl_permission-by-adding-MAY_NOT_BLOCK-into-mask.patch". The change was due to... commit d749519b444db985e40b897f73ce1898b11f997e "->permission() sanitizing: don't pass flags to generic_permission()" [1]. You want me to do a clean patch or by yourself? Can you please, do a overlayfs-v11 on top of Linux-3.0? I hope your work will be accepted into v3.1. Regards, - Sedat - [1] http://git.us.kernel.org/?p=linux/kernel/git/viro/vfs-2.6.git;a=commitdiff;h=d749519b444db985e40b897f73ce1898b11f997e ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux-next: Tree for July 20 (overlayfs) 2011-07-22 9:51 ` Miklos Szeredi 2011-07-22 9:59 ` Sedat Dilek @ 2011-07-22 11:38 ` Sedat Dilek 1 sibling, 0 replies; 5+ messages in thread From: Sedat Dilek @ 2011-07-22 11:38 UTC (permalink / raw) To: Miklos Szeredi Cc: Stephen Rothwell, linux-next, LKML, linux-fsdevel, Al Viro, Randy Dunlap On Fri, Jul 22, 2011 at 11:51 AM, Miklos Szeredi <miklos@szeredi.hu> wrote: [ ... ] > And ->fsync is another one that will have an updated API. > > Miklos > > --- > fs/overlayfs/readdir.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > Index: linux-2.6/fs/overlayfs/readdir.c > =================================================================== > --- linux-2.6.orig/fs/overlayfs/readdir.c 2011-07-21 17:07:52.000000000 +0200 > +++ linux-2.6/fs/overlayfs/readdir.c 2011-07-21 17:10:20.000000000 +0200 > @@ -386,7 +386,8 @@ static loff_t ovl_dir_llseek(struct file > return res; > } > > -static int ovl_dir_fsync(struct file *file, int datasync) > +static int ovl_dir_fsync(struct file *file, loff_t start, loff_t end, > + int datasync) > { > struct ovl_dir_file *od = file->private_data; > > @@ -400,7 +401,7 @@ static int ovl_dir_fsync(struct file *fi > return PTR_ERR(od->realfile); > } > > - return vfs_fsync(od->realfile, datasync); > + return vfs_fsync_range(od->realfile, start, end, datasync); > } > > static int ovl_dir_release(struct inode *inode, struct file *file) > OK, I see your patch is like mine due to changes in linux-next (here: I checked with next-20110721): commit cbc4facd43b3502f644d7f01a9a48f8bec5f3e57 "fs: push i_mutex and filemap_write_and_wait down into ->fsync() handlers" Is it possible to have a clean... 1. OverlayFS v11 against Linux-3.0 2. OverlayFS v11 against vfs-2.6.git#for-next (see [2]) - Sedat - [1] <http://git.us.kernel.org/?p=linux/kernel/git/viro/vfs-2.6.git;a=commit;h=cbc4facd43b3502f644d7f01a9a48f8bec5f3e57> [2] <http://git.us.kernel.org/?p=linux/kernel/git/viro/vfs-2.6.git;a=shortlog;h=refs/heads/for-next> ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-07-22 11:38 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-07-20 18:48 linux-next: Tree for July 20 (overlayfs) Sedat Dilek 2011-07-20 19:28 ` Sedat Dilek 2011-07-22 9:51 ` Miklos Szeredi 2011-07-22 9:59 ` Sedat Dilek 2011-07-22 11:38 ` Sedat Dilek
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).