[RFC][PATCH] sys_fallocate() system call

2007-03-16 Thread Amit K. Arora
First of all, thanks for the overwhelming response! Based on the suggestions received, I have added a new parameter to the sys_fallocate() system call - an interger called mode, just after the fd. Now the system call looks like this: asmlinkage long sys_fallocate(int fd, int mode, loff_t

[PATCH 1/18] xfs: kill struct fid/fid_t namespace pollution

2007-03-16 Thread Christoph Hellwig
XFS currently defines various fid types internally, including an fid_t which I will introduce kernel wide in the next patch. This patch kills the fid_t and xfs_fid2_t types inside xfs and uses xfs_fid_t consistantly. Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index:

[PATCH 2/18] exportfs: add fid type

2007-03-16 Thread Christoph Hellwig
Add a structured fid type so that we don't have to pass an array of u32 values around everywhere. It's a union of possible layouts. As a start there's only the u32 array and the traditional 32bit inode format, but there will be more in one of my next patchset when I start to document the various

[PATCH 3/18] exportfs: add new methods

2007-03-16 Thread Christoph Hellwig
Add the guts for the new filesystem API to exportfs. There's now a fh_to_dentry method that returns a dentry for the object looked for given a filehandle fragment, and a fh_to_parent operation that returns the dentry for the encoded parent directory in case the file handle contains it. There are

[PATCH 4/18] efs: new export ops

2007-03-16 Thread Christoph Hellwig
Trivial switch over to the new generic helpers. Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index: linux-2.6/fs/efs/namei.c === --- linux-2.6.orig/fs/efs/namei.c 2007-03-13 18:19:44.0 +0100 +++

[PATCH 5/18] ext2: new export ops

2007-03-16 Thread Christoph Hellwig
Trivial switch over to the new generic helpers. Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index: linux-2.6/fs/ext2/super.c === --- linux-2.6.orig/fs/ext2/super.c 2007-03-13 18:19:43.0 +0100 +++

[PATCH 6/18] ext3: new export ops

2007-03-16 Thread Christoph Hellwig
Trivial switch over to the new generic helpers. Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index: linux-2.6/fs/ext3/super.c === --- linux-2.6.orig/fs/ext3/super.c 2007-03-13 18:19:43.0 +0100 +++

[PATCH 7/18] ext4: new export ops

2007-03-16 Thread Christoph Hellwig
Trivial switch over to the new generic helpers. Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index: linux-2.6/fs/ext4/super.c === --- linux-2.6.orig/fs/ext4/super.c 2007-03-13 18:19:43.0 +0100 +++

[PATCH 8/18] jfs: new export ops

2007-03-16 Thread Christoph Hellwig
Trivial switch over to the new generic helpers. Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index: linux-2.6/fs/jfs/jfs_inode.h === --- linux-2.6.orig/fs/jfs/jfs_inode.h 2007-03-13 18:19:44.0 +0100 +++

[PATCH 9/18] ntfs: new export ops

2007-03-16 Thread Christoph Hellwig
Trivial switch over to the new generic helpers. Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index: linux-2.6/fs/ntfs/namei.c === --- linux-2.6.orig/fs/ntfs/namei.c 2007-03-13 19:29:22.0 +0100 +++

[PATCH 11/18] fat: new export ops

2007-03-16 Thread Christoph Hellwig
Very little changes here, fat had a mostly no op decode_fh before and does not store any parent information. Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index: linux-2.6/fs/fat/inode.c === --- linux-2.6.orig/fs/fat/inode.c

[PATCH 12/18] isofs: new export ops

2007-03-16 Thread Christoph Hellwig
Nice little cleanup by consolidating things a little and using a structure for the special file handle format. Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index: linux-2.6/fs/isofs/export.c === ---

[PATCH 13/18] shmem: new export ops

2007-03-16 Thread Christoph Hellwig
I'm not sure what people were thinking when adding support to nfs export tmpfs, but here's the conversion anyway: Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index: linux-2.6/mm/shmem.c === --- linux-2.6.orig/mm/shmem.c

[PATCH 14/18] reiserfs: new export ops

2007-03-16 Thread Christoph Hellwig
Another nice little cleanup by using the new methods. Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index: linux-2.6/fs/reiserfs/inode.c === --- linux-2.6.orig/fs/reiserfs/inode.c 2007-03-16 15:43:55.0 +0100 +++

[PATCH 15/18] gfs2: new export ops

2007-03-16 Thread Christoph Hellwig
Convert gfs2 to the new ops. It's a nice little cleanup that allows to get rid of an data structure aswell. Btw, it looks like the old code could scribble over random stack memory for the parent case where gfs2_get_dentry access the imode field in the gfs2_fh_obj structure but only gets a

[PATCH 16/18] ocfs2: new export ops

2007-03-16 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index: linux-2.6/fs/ocfs2/export.c === --- linux-2.6.orig/fs/ocfs2/export.c2007-02-11 11:18:17.0 +0100 +++ linux-2.6/fs/ocfs2/export.c 2007-02-11 11:24:29.0

[PATCH 17/18] exportfs: remove old methods

2007-03-16 Thread Christoph Hellwig
Now that all filesystems are converted remove support for the old methods. Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index: linux-2.6/fs/exportfs/expfs.c === --- linux-2.6.orig/fs/exportfs/expfs.c 2007-03-13

[PATCH 18/18] exportfs: update documentation

2007-03-16 Thread Christoph Hellwig
Update deocumentation to the current state of affairs. Remove duplicated method descruptions in exportfs.h and point to Documentation/filesystems/ Exporting instead. Add a little file header comment in expfs.c describing what's going on and mentioning Neils and my copyright [1]. [1] Neil, in

forced umount?

2007-03-16 Thread Mike Snitzer
I'm interested in understanding the state of Linux with regard to _really_ forcing a filesystem to unmount. There is a (stale) project at OSDL that has various implementations: http://developer.osdl.org/dev/fumount/ Its fairly clear that these efforts (e.g. badfs patches) haven't been given

Re: forced umount?

2007-03-16 Thread Jeremy Fitzhardinge
Mike Snitzer wrote: Is this forced umount work even considered worthwhile by the greater Linux community? Is anyone actively working on this? Have a look at all the discussion about revoke/frevoke on lkml over the last week or two. J - To unsubscribe from this list: send the line

Re: forced umount?

2007-03-16 Thread Gene Heskett
On Saturday 17 March 2007, Mike Snitzer wrote: I'm interested in understanding the state of Linux with regard to _really_ forcing a filesystem to unmount. There is a (stale) project at OSDL that has various implementations: http://developer.osdl.org/dev/fumount/ Its fairly clear that these

Re: forced umount?

2007-03-16 Thread Mike Snitzer
On 3/16/07, Jeremy Fitzhardinge [EMAIL PROTECTED] wrote: Mike Snitzer wrote: Is this forced umount work even considered worthwhile by the greater Linux community? Is anyone actively working on this? Have a look at all the discussion about revoke/frevoke on lkml over the last week or two.

Re: [RFC][PATCH] sys_fallocate() system call

2007-03-16 Thread Stephen Rothwell
On Fri, 16 Mar 2007 20:01:01 +0530 Amit K. Arora [EMAIL PROTECTED] wrote: +asmlinkage long sys_fallocate(int fd, int mode, loff_t offset, loff_t len); --- linux-2.6.20.1.orig/include/asm-powerpc/systbl.h +++ linux-2.6.20.1/include/asm-powerpc/systbl.h @@ -305,3 +305,4 @@