Re: request for patches: showing mount options

2007-07-31 Thread Miklos Szeredi
> > The removal of /etc/mtab in favor of /proc/mounts is a new requirement, > > and is not as trivial as you might hope. Internally the NFS client > > represents the mount options as a binary data structure, and it contains > > only the information that has traditionally been passed into the ke

Re: request for patches: showing mount options

2007-07-31 Thread Miklos Szeredi
> On Tue, 2007-07-31 at 17:16 -0400, Chuck Lever wrote: > > Miklos Szeredi wrote: > > > It would be nice to have all this stuff in 2.6.24, which doesn't leave > > > a lot of time. > > > > Yes, that would be nice, but there's a lot of stuff that needs to get > > done before this. NFS IPv6, for ex

Re: [PATCH 02/14] FS-Cache: Recruit a couple of page flags for cache management

2007-07-31 Thread Peter Zijlstra
On Tue, 2007-07-31 at 21:25 +0100, David Howells wrote: > diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h > index 209d3a4..eaf9854 100644 > --- a/include/linux/page-flags.h > +++ b/include/linux/page-flags.h > @@ -83,19 +83,24 @@ > #define PG_private 11 /* If p

Re: request for patches: showing mount options

2007-07-31 Thread Karel Zak
On Tue, Jul 31, 2007 at 10:19:57AM -0400, Chuck Lever wrote: > The removal of /etc/mtab in favor of /proc/mounts is a new requirement, > and is not as trivial as you might hope. Internally the NFS client > represents the mount options as a binary data structure, and it contains > only the infor

Re: request for patches: showing mount options

2007-07-31 Thread Trond Myklebust
On Tue, 2007-07-31 at 17:16 -0400, Chuck Lever wrote: > Miklos Szeredi wrote: > > It would be nice to have all this stuff in 2.6.24, which doesn't leave > > a lot of time. > > Yes, that would be nice, but there's a lot of stuff that needs to get > done before this. NFS IPv6, for example, is a hi

Re: request for patches: showing mount options

2007-07-31 Thread Chuck Lever
Miklos Szeredi wrote: After a successful mount, the NFS mount command tucks some options into /etc/mtab that reflect which mountd was used for the mount, and what protocol version and port was used for the mount request. Those options are not passed to the kernel, and do not appear in /proc/mo

[PATCH] NFS Kconfig: Make ROOT_NFS visibly part of NFS_FS group

2007-07-31 Thread Al Boldi
Relocate ROOT_NFS from below NFSD to be visibly part of NFS_FS group. This makes the ROOT_NFS Kconfig option logically coherent. Signed-off-by: Al Boldi <[EMAIL PROTECTED]> Cc: Trond Myklebust <[EMAIL PROTECTED]> --- --- a/fs/Kconfig2007-07-09 06:38:41.0 +0300 +++ b/fs/Kconfig

[PATCH 14/14] NFS: Use local caching

2007-07-31 Thread David Howells
The attached patch makes it possible for the NFS filesystem to make use of the network filesystem local caching service (FS-Cache). To be able to use this, an updated mount program is required. This can be obtained from: http://people.redhat.com/steved/cachefs/util-linux/ To mount an NF

[PATCH 12/14] CacheFiles: Get the SID under which the CacheFiles module should operate

2007-07-31 Thread David Howells
Get the SID under which the CacheFiles module should operate so that the SELinux security system can control the accesses it makes. Signed-Off-By: David Howells <[EMAIL PROTECTED]> --- include/linux/security.h | 20 security/dummy.c |7 +++ security/selinux

[PATCH 10/14] CacheFiles: Add an act-as SID override in task_security_struct

2007-07-31 Thread David Howells
Add an act-as SID to task_security_struct that is equivalent to fsuid/fsgid in task_struct. This permits a task to perform operations as if it is the overriding SID, without changing its own SID as that might be needed to control access to the process by ptrace, signals, /proc, etc. This is usefu

[PATCH 11/14] CacheFiles: Permit an inode's security ID to be obtained

2007-07-31 Thread David Howells
Permit an inode's security ID to be obtained by the CacheFiles module. This is then used as the SID with which files and directories will be created in the cache. Signed-Off-By: David Howells <[EMAIL PROTECTED]> --- include/linux/security.h | 13 + security/dummy.c |6

[PATCH 09/14] CacheFiles: Permit a process's create SID to be overridden

2007-07-31 Thread David Howells
Make it possible for a process's file creation SID to be temporarily overridden by CacheFiles so that files created in the cache have the right label attached. Without this facility, files created in the cache will be given the current file creation SID of whatever process happens to have invoked

[PATCH 07/14] CacheFiles: Permit the page lock state to be monitored

2007-07-31 Thread David Howells
Add a function to install a monitor on the page lock waitqueue for a particular page, thus allowing the page being unlocked to be detected. This is used by CacheFiles to detect read completion on a page in the backing filesystem so that it can then copy the data to the waiting netfs page. Signed-

[PATCH 08/14] CacheFiles: Export things for CacheFiles

2007-07-31 Thread David Howells
Export a number of functions for CacheFiles's use. Signed-Off-By: David Howells <[EMAIL PROTECTED]> --- fs/file_table.c |1 + fs/super.c |2 ++ kernel/auditsc.c |2 ++ 3 files changed, 5 insertions(+), 0 deletions(-) diff --git a/fs/file_table.c b/fs/file_table.c index d17fd6

[PATCH 06/14] CacheFiles: Add a hook to write a single page of data to an inode

2007-07-31 Thread David Howells
Add an address space operation to write one single page of data to an inode at a page-aligned location (thus permitting the implementation to be highly optimised). This is used by CacheFiles to store the contents of netfs pages into their backing file pages. Supply a generic implementation for th

[PATCH 05/14] CacheFiles: Add missing copy_page export for ia64

2007-07-31 Thread David Howells
This one-line patch fixes the missing export of copy_page introduced by the cachefile patches. This patch is not yet upstream, but is required for cachefile on ia64. It will be pushed upstream when cachefile goes upstream. Signed-off-by: Prarit Bhargava <[EMAIL PROTECTED]> Signed-Off-By: David H

[PATCH 03/14] FS-Cache: Provide an add_wait_queue_tail() function

2007-07-31 Thread David Howells
Provide an add_wait_queue_tail() function to add a waiter to the back of a wait queue instead of the front. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- include/linux/wait.h |1 + kernel/wait.c| 18 ++ 2 files changed, 19 insertions(+), 0 deletions(-) diff

[PATCH 02/14] FS-Cache: Recruit a couple of page flags for cache management

2007-07-31 Thread David Howells
Recruit a couple of page flags to aid in cache management. The following extra flags are defined: (1) PG_fscache (PG_owner_priv_2) The marked page is backed by a local cache and is pinning resources in the cache driver. (2) PG_fscache_write (PG_owner_priv_3) The marked page is

[PATCH 01/14] FS-Cache: Release page->private after failed readahead

2007-07-31 Thread David Howells
The attached patch causes read_cache_pages() to release page-private data on a page for which add_to_page_cache() fails or the filler function fails. This permits pages with caching references associated with them to be cleaned up. The invalidatepage() address space op is called (indirectly) to do

[PATCH 00/14] Permit filesystem local caching

2007-07-31 Thread David Howells
These patches add local caching for network filesystems such as NFS and AFS. This is a preview, so expect bugs. FS-Cache now runs fully asynchronously as required by Trond Myklebust for NFS. -- A tarball of the patches is available at: http://people.redhat.com/~dhowells/fscache/patche

Re: request for patches: showing mount options

2007-07-31 Thread Miklos Szeredi
> >> After a successful mount, the NFS mount command tucks some options into > >> /etc/mtab that reflect which mountd was used for the mount, and what > >> protocol version and port was used for the mount request. Those options > >> are not passed to the kernel, and do not appear in /proc/mount

Re: [RFC 12/26] ext2 white-out support

2007-07-31 Thread Mark Williamson
> Really the only sane way of keeping track of whiteouts seems some external > store. We did an experiment with Unionfs, and moving the whiteout handling > to effectively a "library" that did all the dirty work cleaned up the code > considerably [2,3]. What about keeping track of whiteouts in a sp

Re: [RFC 12/26] ext2 white-out support

2007-07-31 Thread Josef Sipek
On Tue, Jul 31, 2007 at 06:03:06PM +0100, Mark Williamson wrote: > > Really the only sane way of keeping track of whiteouts seems some external > > store. We did an experiment with Unionfs, and moving the whiteout handling > > to effectively a "library" that did all the dirty work cleaned up the co

Re: [RFC 12/26] ext2 white-out support

2007-07-31 Thread Josef Sipek
On Tue, Jul 31, 2007 at 07:00:12PM +0200, Jan Blunck wrote: > On Tue, Jul 31, Josef Sipek wrote: > > > On Mon, Jul 30, 2007 at 06:13:35PM +0200, Jan Blunck wrote: > > > Introduce white-out support to ext2. > > > > I think storing whiteouts on the branches is wrong. It creates all sort of > > nast

Re: [RFC 12/26] ext2 white-out support

2007-07-31 Thread Jan Blunck
On Tue, Jul 31, Josef Sipek wrote: > On Mon, Jul 30, 2007 at 06:13:35PM +0200, Jan Blunck wrote: > > Introduce white-out support to ext2. > > I think storing whiteouts on the branches is wrong. It creates all sort of > nasty cases when people actually try to use unioning. Imagine a (no-so > unlik

Re: [RFC 12/26] ext2 white-out support

2007-07-31 Thread Josef Sipek
On Mon, Jul 30, 2007 at 06:13:35PM +0200, Jan Blunck wrote: > Introduce white-out support to ext2. I think storing whiteouts on the branches is wrong. It creates all sort of nasty cases when people actually try to use unioning. Imagine a (no-so unlikely) scenario where you have 2 unions, and they

Re: request for patches: showing mount options

2007-07-31 Thread Chuck Lever
Miklos Szeredi wrote: After a successful mount, the NFS mount command tucks some options into /etc/mtab that reflect which mountd was used for the mount, and what protocol version and port was used for the mount request. Those options are not passed to the kernel, and do not appear in /proc/mo

Re: fallocate() man page

2007-07-31 Thread Amit K. Arora
Hi Michael, On Mon, Jul 30, 2007 at 09:43:08PM +0200, Michael Kerrisk wrote: > Hello Amit. > > > On Mon, Jul 23, 2007 at 08:09:45AM +0200, Michael Kerrisk wrote: > >> Amit, > >> > >> I've taken the page that you sent and made various minor formatting and > >> wording fixes. I've also added vario

Re: [RFC 12/26] ext2 white-out support

2007-07-31 Thread Theodore Tso
On Tue, Jul 31, 2007 at 09:44:36AM +0200, Jan Blunck wrote: > Ok, this is pretty similar to the way I implemented this for tmpfs. The > problem is that the union mount code is explicitly checking if the filesystem > is supporting whiteout. I used to use a new filesystem flag (FS_WHITEOUT) for > thi

Re: [RFC 12/26] ext2 white-out support

2007-07-31 Thread Jan Blunck
On Tue, Jul 31, Andreas Dilger wrote: > On Jul 31, 2007 09:44 +0200, Jan Blunck wrote: > > Ok, this is pretty similar to the way I implemented this for tmpfs. The > > problem is that the union mount code is explicitly checking if the > > filesystem > > is supporting whiteout. I used to use a new

Re: [PATCH] ufs: implement show_options

2007-07-31 Thread Miklos Szeredi
> This patch contains implementation of show_options method for UFS, > it depend on add-in-sunos-41x-compatible-mode-for-ufs.patch and > add-in-sunos-41x-compatible-mode-for-ufs-fix.patch. > > > Signed-off-by: Evgeniy Dushistov <[EMAIL PROTECTED]> Thanks. I'll quite these up and submit them in

Re: request for patches: showing mount options

2007-07-31 Thread Miklos Szeredi
> After a successful mount, the NFS mount command tucks some options into > /etc/mtab that reflect which mountd was used for the mount, and what > protocol version and port was used for the mount request. Those options > are not passed to the kernel, and do not appear in /proc/mounts today. >

Re: [RFC 12/26] ext2 white-out support

2007-07-31 Thread Andreas Dilger
On Jul 31, 2007 09:44 +0200, Jan Blunck wrote: > Ok, this is pretty similar to the way I implemented this for tmpfs. The > problem is that the union mount code is explicitly checking if the filesystem > is supporting whiteout. I used to use a new filesystem flag (FS_WHITEOUT) for > this but though

Re: [RFC 12/26] ext2 white-out support

2007-07-31 Thread Jan Blunck
On Mon, Jul 30, Theodore Tso wrote: > On Mon, Jul 30, 2007 at 06:13:35PM +0200, Jan Blunck wrote: > > Introduce white-out support to ext2. > > > > Known Bugs: > > - Needs a reserved inode number for white-outs > > You picked different reserved inodes for the ext2 and ext3 > filesystems. That's