linux-fsdevel mailing list

FromSubjectsort iconDate
Tomasz Chmielewski
fsck for... tmpfs?
I just looked into /tmp, which is tmpfs here, and found something rather bizarre - I replaced some files with "(...)": # ls -l /tmp ls: cannot access /tmp/temp-qar�hest.html: No such file or directory total 13984 drwxrwxr-x 3 tch tch 100 2008-01-11 00:11 1/ drwx------ 2 tch tch 60 2008-01-10 09:00 gpg-gcUuf7/ (...) -????????? ? ? ? ? ? temp-qar�hest.html # ls /tmp/temp-qar�hest.html ls: cannot access /tmp/temp-qar�hest.html: No such file or di...
Jan 10, 7:36 pm 2008
Neil Brown
Re: [PATCH][RFC] fast file mapping for loop
I'm with Jens here. We currently have two interfaces that interesting block devices can be written for: 'dm' and 'block'. We really should aim to have just one. I would call it 'block' and move anything really useful from dm into block. As far as I can tell, the important things that 'dm' has that 'block' doesn't have are: - a standard ioctl interface for assembling and creating interesting devices. For 'block', everybody just rolls there own. e.g. md, loop, and nbd all u...
Jan 10, 7:01 pm 2008
Steve French
Re: projected date for mount.cifs to support DFS junction po...
I anticipate that it will make Linux kernel 2.6.25 (marked experimental) and eventually in a cifs version 1.53 backported for older kernels. Most of the support required for CIFS DFS for the Linux client has been written, reviewed and merged already. The servers (Samba, NetApp, Windows etc.) have supported DFS for years. This week I am reviewing four reasonably small patches to the Linux cifs client from Igor Mammedov (also on the linux-cifs-client mailing list) that provide the remaining pie...
Jan 10, 4:28 pm 2008
Erez Zadok
[UNIONFS] 00/29 Unionfs and related patches pre-merge review...
Dear Linus, Al, Christoph, and Andrew, As per your request, I'm posting for review the unionfs code (and related code) that's in my korg tree against mainline (v2.6.24-rc7-71-gfd0b45d). This is in preparation for merge in 2.6.25. This code here is nearly identical to what's in -mm (the mm code has a couple of additional things that depend on mm-specific patches that aren't in mainline yet). I've addressed *every* public/private comment I received on the first set of patches I posted. A summar...
Jan 10, 10:59 am 2008
Christoph Hellwig
Re: [UNIONFS] 00/29 Unionfs and related patches pre-merge re...
Huh? There's still aboslutely not fix to the underlying problems of the whole idea. I think we made it pretty clear that unionfs is not the way to go, and that we'll get the union mount patches clear once the per-mountpoint r/o and unprivilegued mount patches series are in and stable. -
Jan 10, 11:08 am 2008
Erez Zadok
Re: [UNIONFS] 00/29 Unionfs and related patches pre-merge re...
I'll reiterate what I've said before: unionfs is used today by many users, it works, and is stable. After years of working with unionfs, we've settled on a set of features that users actually use. This functionality can be in mainline today. Unioning at the VFS level, will take a long time to reach the same level of maturity and support the same set of features. Based on my years of practical experience with it, unioning directories seems like a simple idea, but in practice it's quite hard no ...
Jan 10, 11:57 am 2008
Erez Zadok
[PATCH 13/29] Unionfs: directory reading file operations
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/dirfops.c | 290 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 290 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/dirfops.c diff --git a/fs/unionfs/dirfops.c b/fs/unionfs/dirfops.c new file mode 100644 index 0000000..a613862 --- /dev/null +++ b/fs/unionfs/dirfops.c @@ -0,0 +1,290 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyright (c) 2003-2006 Charles P. Wright + * Copyright (c) ...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 24/29] Unionfs: debugging infrastructure
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/debug.c | 533 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 533 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/debug.c diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c new file mode 100644 index 0000000..d154c32 --- /dev/null +++ b/fs/unionfs/debug.c @@ -0,0 +1,533 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyright (c) 2005-2007 Josef 'Jeff' Sipek + * Copyright (c) 2003-20...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 11/29] Unionfs: lower-level lookup routines
Includes lower nameidata support routines. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/lookup.c | 652 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 652 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/lookup.c diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c new file mode 100644 index 0000000..b9ee072 --- /dev/null +++ b/fs/unionfs/lookup.c @@ -0,0 +1,652 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyright (c) 2003-...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 20/29] Unionfs: super_block operations
Includes read_inode, delete_inode, put_super, statfs, remount_fs (which supports branch-management ops), clear_inode, alloc_inode, destroy_inode, write_inode, umount_begin, and show_options. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/super.c | 1025 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 1025 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/super.c diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c new file mode 100644 index...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 10/29] Unionfs: dentry revalidation
Includes d_release methods and cache-coherency support for dentries. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/dentry.c | 548 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 548 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/dentry.c diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c new file mode 100644 index 0000000..cd15243 --- /dev/null +++ b/fs/unionfs/dentry.c @@ -0,0 +1,548 @@ +/* + * Copyright (c) 2003-2007 Erez Zado...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 16/29] Unionfs: inode operations
Includes create, lookup, link, symlink, mkdir, mknod, readlink, follow_link, put_link, permission, and setattr. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/inode.c | 1174 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 1174 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/inode.c diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c new file mode 100644 index 0000000..e15ddb9 --- /dev/null +++ b/fs/unionfs/inode.c @@ -0,0 +1,1174 @@ ...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 06/29] Unionfs: main header file
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/union.h | 602 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 602 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/union.h diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h new file mode 100644 index 0000000..d324f83 --- /dev/null +++ b/fs/unionfs/union.h @@ -0,0 +1,602 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyright (c) 2003-2006 Charles P. Wright + * Copyright (c) 2005-200...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 12/29] Unionfs: rename method and helpers
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/rename.c | 531 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 531 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/rename.c diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c new file mode 100644 index 0000000..9306a2b --- /dev/null +++ b/fs/unionfs/rename.c @@ -0,0 +1,531 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyright (c) 2003-2006 Charles P. Wright + * Copyright (c) 2005...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 07/29] Unionfs: common file copyup/revalidation opera...
Includes open, ioctl, and flush operations. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/commonfops.c | 835 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 835 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/commonfops.c diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c new file mode 100644 index 0000000..f37192f --- /dev/null +++ b/fs/unionfs/commonfops.c @@ -0,0 +1,835 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Co...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 19/29] Unionfs: mount-time and stacking-interposition...
Includes read_super and module-linkage routines. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/main.c | 794 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 794 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/main.c diff --git a/fs/unionfs/main.c b/fs/unionfs/main.c new file mode 100644 index 0000000..23c18f7 --- /dev/null +++ b/fs/unionfs/main.c @@ -0,0 +1,794 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyright (c) 2003-20...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 18/29] Unionfs: address-space operations
Includes writepage, writepages, readpage, prepare_write, and commit_write. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/mmap.c | 343 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 343 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/mmap.c diff --git a/fs/unionfs/mmap.c b/fs/unionfs/mmap.c new file mode 100644 index 0000000..ad770ac --- /dev/null +++ b/fs/unionfs/mmap.c @@ -0,0 +1,343 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok ...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 21/29] Unionfs: extended attributes operations
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/xattr.c | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 153 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/xattr.c diff --git a/fs/unionfs/xattr.c b/fs/unionfs/xattr.c new file mode 100644 index 0000000..8001c65 --- /dev/null +++ b/fs/unionfs/xattr.c @@ -0,0 +1,153 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyright (c) 2003-2006 Charles P. Wright + * Copyright (c) 2005-200...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 22/29] Unionfs: async I/O queue
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/sioq.c | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++ fs/unionfs/sioq.h | 92 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 211 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/sioq.c create mode 100644 fs/unionfs/sioq.h diff --git a/fs/unionfs/sioq.c b/fs/unionfs/sioq.c new file mode 100644 index 0000000..2a8c88e --- /dev/null +++ b/fs/unionfs/sioq.c @@ -0,0 +1,119 @@ +/* + * Copyr...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 23/29] Unionfs: miscellaneous helper routines
Mostly related to whiteouts. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/subr.c | 242 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 242 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/subr.c diff --git a/fs/unionfs/subr.c b/fs/unionfs/subr.c new file mode 100644 index 0000000..0a0fce9 --- /dev/null +++ b/fs/unionfs/subr.c @@ -0,0 +1,242 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyright (c) 2003-2006 Charles P. Wright...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 26/29] Unionfs: common header file for user-land util...
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- include/linux/union_fs.h | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) create mode 100644 include/linux/union_fs.h diff --git a/include/linux/union_fs.h b/include/linux/union_fs.h new file mode 100644 index 0000000..9d601d2 --- /dev/null +++ b/include/linux/union_fs.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyright (c) 2005-2007 Josef 'Jeff' Sipek + * Copyright (c) 2003-20...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 05/29] Unionfs: fanout header definitions
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/fanout.h | 366 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 366 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/fanout.h diff --git a/fs/unionfs/fanout.h b/fs/unionfs/fanout.h new file mode 100644 index 0000000..4d9a45f --- /dev/null +++ b/fs/unionfs/fanout.h @@ -0,0 +1,366 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyright (c) 2003-2006 Charles P. Wright + * Copyright (c) 2005...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 14/29] Unionfs: readdir helper functions
Includes whiteout handling for directories. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/dirhelper.c | 267 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 267 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/dirhelper.c diff --git a/fs/unionfs/dirhelper.c b/fs/unionfs/dirhelper.c new file mode 100644 index 0000000..4b73bb6 --- /dev/null +++ b/fs/unionfs/dirhelper.c @@ -0,0 +1,267 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyri...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 28/29] VFS: export release_open_intent symbol
Needed to release the resources of the lower nameidata structures that we create and pass to lower file systems (e.g., when calling vfs_create). Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/namei.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index 3b993db..14f9861 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -389,6 +389,7 @@ void release_open_intent(struct nameidata *nd) else fput(nd->intent.open.file); } +EXPORT_SY...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 08/29] Unionfs: basic file operations
Includes read, write, mmap, fsync, and fasync. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/file.c | 184 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 184 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/file.c diff --git a/fs/unionfs/file.c b/fs/unionfs/file.c new file mode 100644 index 0000000..0c424f6 --- /dev/null +++ b/fs/unionfs/file.c @@ -0,0 +1,184 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyright (c) 2003-2006...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 25/29] Unionfs file system magic number
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- include/linux/magic.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/magic.h b/include/linux/magic.h index 1fa0c2c..67043ed 100644 --- a/include/linux/magic.h +++ b/include/linux/magic.h @@ -35,6 +35,8 @@ #define REISER2FS_SUPER_MAGIC_STRING "ReIsEr2Fs" #define REISER2FS_JR_SUPER_MAGIC_STRING "ReIsEr3Fs" +#define UNIONFS_SUPER_MAGIC 0xf15f083d + #define SMB_SUPER_MAGIC 0x517B #define USBD...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 29/29] Put Unionfs and eCryptfs under one layered fil...
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/Kconfig | 53 +++++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 41 insertions(+), 12 deletions(-) diff --git a/fs/Kconfig b/fs/Kconfig index 487236c..55a78b7 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -1041,6 +1041,47 @@ config CONFIGFS_FS endmenu +menu "Layered filesystems" + +config ECRYPT_FS + tristate "eCrypt filesystem layer support (EXPERIMENTAL)" + depends on EXPERIMENTAL && KEYS &&a...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 04/29] Unionfs: main Makefile
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/Makefile | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/Makefile diff --git a/fs/unionfs/Makefile b/fs/unionfs/Makefile new file mode 100644 index 0000000..17ca4a7 --- /dev/null +++ b/fs/unionfs/Makefile @@ -0,0 +1,13 @@ +obj-$(CONFIG_UNION_FS) += unionfs.o + +unionfs-y := subr.o dentry.o file.o inode.o main.o super.o \ + rdstate.o copyup.o dirhelper.o rename.o unlink.o...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 15/29] Unionfs: readdir state helpers
Includes duplicate name elimination and whiteout-handling code. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/rdstate.c | 285 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 285 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/rdstate.c diff --git a/fs/unionfs/rdstate.c b/fs/unionfs/rdstate.c new file mode 100644 index 0000000..7ba1e1a --- /dev/null +++ b/fs/unionfs/rdstate.c @@ -0,0 +1,285 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 03/29] Makefile: hook to compile unionfs
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/Makefile | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/Makefile b/fs/Makefile index 500cf15..e202288 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -118,3 +118,4 @@ obj-$(CONFIG_HPPFS) += hppfs/ obj-$(CONFIG_DEBUG_FS) += debugfs/ obj-$(CONFIG_OCFS2_FS) += ocfs2/ obj-$(CONFIG_GFS2_FS) += gfs2/ +obj-$(CONFIG_UNION_FS) += unionfs/ -- 1.5.2.2 -
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 01/29] Unionfs: documentation
Includes index files, MAINTAINERS, and documentation on general concepts, usage, issues, and renaming operations. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- Documentation/filesystems/00-INDEX | 2 + Documentation/filesystems/unionfs/00-INDEX | 10 + Documentation/filesystems/unionfs/concepts.txt | 213 ++++++++++++++++++++++++ Documentation/filesystems/unionfs/issues.txt | 28 +++ Documentation/filesystems/unionfs/rename.txt | 31 ++++ Documentation/fil...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 17/29] Unionfs: unlink/rmdir operations
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/unlink.c | 251 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 251 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/unlink.c diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c new file mode 100644 index 0000000..1e370a1 --- /dev/null +++ b/fs/unionfs/unlink.c @@ -0,0 +1,251 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyright (c) 2003-2006 Charles P. Wright + * Copyright (c) 2005...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 09/29] Unionfs: lower-level copyup routines
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/copyup.c | 899 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 899 insertions(+), 0 deletions(-) create mode 100644 fs/unionfs/copyup.c diff --git a/fs/unionfs/copyup.c b/fs/unionfs/copyup.c new file mode 100644 index 0000000..16b2c7c --- /dev/null +++ b/fs/unionfs/copyup.c @@ -0,0 +1,899 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyright (c) 2003-2006 Charles P. Wright + * Copyright (c) 2005...
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 27/29] VFS path get/put ops used by Unionfs
Note: this will become obsolete once similar patches, now in -mm, make it to mainline. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- include/linux/namei.h | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/include/linux/namei.h b/include/linux/namei.h index 4cb4f8d..63f16d9 100644 --- a/include/linux/namei.h +++ b/include/linux/namei.h @@ -3,6 +3,7 @@ #include <linux/dcache.h> #include <linux/linkage.h> +#include <linux/mount....
Jan 10, 10:59 am 2008
Erez Zadok
[PATCH 02/29] VFS/eCryptfs: use simplified fs_stack API to f...
Acked-by: Mike Halcrow <mhalcrow@us.ibm.com> Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/ecryptfs/dentry.c | 2 +- fs/ecryptfs/inode.c | 6 +++--- fs/ecryptfs/main.c | 2 +- fs/stack.c | 38 ++++++++++++++++++++++++-------------- include/linux/fs_stack.h | 21 ++++++++++++++++----- 5 files changed, 45 insertions(+), 24 deletions(-) diff --git a/fs/ecryptfs/dentry.c b/fs/ecryptfs/dentry.c index cb20b96..a8c1686 100644 --- a/fs/ecryp...
Jan 10, 10:59 am 2008
Erez Zadok
[GIT PULL -mm] 0/4 Unionfs updates/fixes/cleanups
The following is a series of patchsets related to Unionfs. This is the fourth set of patchsets resulting from an lkml review of the entire unionfs code base, in preparation for a merge into mainline. The most significant changes here are a few locking/race bugfix related to branch-management. These patches were tested (where appropriate) on Linus's 2.6.24 latest code (as of v2.6.24-rc7-71-gfd0b45d), MM, as well as the backports to 2.6.{23,22,21,20,19,18,9} on ext2/3/4, xfs, reiserfs, nfs2/3/4, j...
Jan 9, 10:16 pm 2008
Erez Zadok
[PATCH 1/4] Unionfs: merged several printk KERN_CONT togethe...
CC: Joe Perches <joe@perches.com> Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/debug.c | 51 +++++++++++++++++++++++++-------------------------- 1 files changed, 25 insertions(+), 26 deletions(-) diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c index 5f1d887..d154c32 100644 --- a/fs/unionfs/debug.c +++ b/fs/unionfs/debug.c @@ -472,16 +472,16 @@ void __show_inode_times(const struct inode *inode, lower_inode = unionfs_lower_inode_idx(inode, bindex); if (...
Jan 9, 10:16 pm 2008
Erez Zadok
[PATCH 4/4] Unionfs: ensure we have lower dentries in d_iput
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/dentry.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c index d969640..cd15243 100644 --- a/fs/unionfs/dentry.c +++ b/fs/unionfs/dentry.c @@ -507,9 +507,10 @@ static void unionfs_d_iput(struct dentry *dentry, struct inode *inode) { int bindex, rc; + BUG_ON(!dentry); unionfs_read_lock(dentry->d_sb, UNIONFS_SMUTEX_CHILD); - if (dbstart(dentry) &l...
Jan 9, 10:16 pm 2008
Erez Zadok
[PATCH 2/4] Unionfs: mmap fixes
Ensure we have lower inodes in prepare/commit_write. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/mmap.c | 26 +++++++++++++++++++++----- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/fs/unionfs/mmap.c b/fs/unionfs/mmap.c index a0e654b..ad770ac 100644 --- a/fs/unionfs/mmap.c +++ b/fs/unionfs/mmap.c @@ -224,13 +224,26 @@ out: static int unionfs_prepare_write(struct file *file, struct page *page, unsigned from, unsigned to) { + int err; + + ...
Jan 9, 10:16 pm 2008
Erez Zadok
[PATCH 3/4] Unionfs: branch-management related locking fixes
Add necessary locking to dentry/inode branch-configuration, so we get consistent values during branch-management actions. In d_revalidate_chain, ->permission, and ->create, also lock parent dentry. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/commonfops.c | 6 ++++++ fs/unionfs/dentry.c | 6 +++++- fs/unionfs/inode.c | 17 +++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletions(-) diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfop...
Jan 9, 10:16 pm 2008
Jens Axboe
Re: [PATCH][RFC] fast file mapping for loop
Yeah, basically allowing O_RDONLY | O_DIRECT opens should be ok, but we can't allow writes and we can't allow page cache to exist for this file Irk, but yeah we probably need something like that for now until Chris proposes his API addition. -- Jens Axboe -
Jan 10, 4:43 am 2008
Nick Piggin
Re: [PATCH][RFC] fast file mapping for loop
You told Christoph that just using direct-IO from kernel still doesn't give you the required behaviour... What about queueing the IO directly *and* using direct-IO? I guess it still has to go through the underlying Just a quick question (I haven't looked closely at the code): how come you are using a prio tree for extents? I don't think they could be overlapping? -
Jan 9, 9:42 pm 2008
Christoph Hellwig
Re: [PATCH][RFC] fast file mapping for loop
We defintively need to go through the filesystem for I/O submission, and also for I/O completion. Thinking of the async submission might be what Peter actually implemented for his network swapping patches as you really wouldn't want to write it out synchronously. IMHO this shouldn't be done in the loop driver anyway. Filesystems have their own effricient extent lookup trees (well, at least xfs and btrfs do), and we should leverage that instead of reinventing it. -
Jan 10, 4:37 am 2008
Jens Axboe
Re: [PATCH][RFC] fast file mapping for loop
Completely agree, it's just needed right now for this solution since all we have is a crappy bmap() interface to get at those mappings. -- Jens Axboe -
Jan 10, 4:44 am 2008
Christoph Hellwig
Re: [PATCH][RFC] fast file mapping for loop
So let's fix the interface instead of piling crap ontop of it. As I said I think Peter has something to start with so let's beat on it until we have something suitable. If we aren't done by end of Feb I'm happy to host a hackfest to get it sorted around the fs/storage summit.. -
Jan 10, 4:54 am 2008
Jens Axboe
Re: [PATCH][RFC] fast file mapping for loop
Sure, I'm all for doing it the Right Way. I wasn't aware of anything Peter was doing in this area, so lets please see it. It's not like opportunities to improve this haven't been around. My plan was/is to convert to using the get_block() tricks of O_DIRECT, one could easily argue that the work should have been done then. And perhaps direct-io.c wouldn't be such a steaming pile of crap if it had been done, and loop would already be fine since we could have tapped into Count me in :) -- Jens...
Jan 10, 5:01 am 2008
Chris Mason
Re: [PATCH][RFC] fast file mapping for loop
On Thu, 10 Jan 2008 08:54:59 +0000 Ok, I've been meaning to break my extent_map code up, and this is a very good reason. I'll work up a sample today based on Jens' code. The basic goals: * Loop (swap) calls into the FS for each mapping. Any caching happens on the FS side. * The FS returns an extent, filling any holes Swap would need to use an extra call early on for preallocation. Step two is having a call back into the FS allow the FS to delay the bios until commit completion so that CO...
Jan 10, 8:53 am 2008
Jens Axboe
Re: [PATCH][RFC] fast file mapping for loop
Sure, a function to save a completed bio and a function to execute completions on those already stored? -- Jens Axboe -
Jan 10, 9:03 am 2008
Chris Mason
Re: [PATCH][RFC] fast file mapping for loop
On Thu, 10 Jan 2008 14:03:24 +0100 Sounds right, I'm mostly looking for a way to aggregate a few writes to make the commits a little larger. -chris -
Jan 10, 9:46 am 2008
Peter Zijlstra
Re: [PATCH][RFC] fast file mapping for loop
I have this patch to add swap_out/_in methods. I expect we can loosen the requirement for swapcache pages and change the name a little. previously posted here: http://lkml.org/lkml/2007/5/4/143 --- Subject: mm: add support for non block device backed swap files New addres_space_operations methods are added: int swapfile(struct address_space *, int); int swap_out(struct file *, struct page *, struct writeback_control *); int swap_in(struct file *, struct page *); When during sy...
Jan 10, 5:37 am 2008
previous daytodaynext day
January 9, 2008January 10, 2008January 11, 2008