[RFC][PATCH] Debug Register Allocation on x86

2001-04-03 Thread Bharata B . Rao
ttp://oss.sgi.com/projects/kdb/ Regards Bharata B. Rao. IBM Dynamic Probes Team diff -urN linux-2.4.2/arch/i386/config.in linux-2.4.2+dr/arch/i386/config.in --- linux-2.4.2/arch/i386/config.in Tue Jan 9 02:57:56 2001 +++ linux-2.4.2+dr/arch/i386/config.in Tue Apr 3 15:56:17 2001 @@ -3

[RFC][PATCH 0/15] VFS based Union Mount

2007-04-17 Thread Bharata B Rao
Hi, Here is an attempt towards vfs based union mount implementation. Union mount provides the filesytem namespace unification feature. Unlike the traditional mounts which hide the contents of the mount point, the union mount presents the merged view of the mount point and the mounted filesytem.

[RFC][PATCH 14/15] tmpfs whiteout support

2007-04-17 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] Subject: tmpfs whiteout support Introduce whiteout support to tmpfs. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- mm/shmem.c |9 - 1 files changed, 8 insertions(+), 1 deletion(-) --- a/mm/shmem.c

[RFC][PATCH 15/15] Union-mount changes for NFS

2007-04-17 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] Subject: Union-mount changes for NFS Changes necessary to mount a NFS volume into a union. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/nfs/dir.c| 41 +++-- fs/nfs

[RFC][PATCH 10/15] In-kernel file copy between union mounted filesystems

2007-04-17 Thread Bharata B Rao
to the topmost union layer first. This patch uses the do_splice_direct() for doing the in-kernel file copy. Signed-off-by: Bharata B Rao [EMAIL PROTECTED] Signed-off-by: Jan Blunck [EMAIL PROTECTED] --- fs/namei.c| 46 + fs/union.c| 384

[RFC][PATCH 11/15] VFS whiteout handling

2007-04-17 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] Subject: VFS whiteout handling Introduce white-out handling in the VFS. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/inode.c| 17 + fs/namei.c| 476

[RFC][PATCH 9/15] Simple union-mount readdir

2007-04-17 Thread Bharata B Rao
, the previously read entries are re-read into the cache and newly read entires are compared against these for duplicates before being they are returned to user space. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/aio.c |7 fs

[RFC][PATCH 12/15] ext2 whiteout support

2007-04-17 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] Subject: ext2 whiteout support Introduce whiteout support to ext2. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/ext2/dir.c |2 ++ fs/ext2/namei.c | 17 + fs/ext2

Re: [RFC][PATCH 0/15] VFS based Union Mount

2007-04-17 Thread Bharata B Rao
On Tue, Apr 17, 2007 at 10:35:50AM -0400, Shaya Potter wrote: Bharata B Rao wrote: Hi, Here is an attempt towards vfs based union mount implementation. Union mount provides the filesytem namespace unification feature. Unlike the traditional mounts which hide the contents of the mount point

[RFC][PATCH 8/15] Union-mount lookup

2007-04-17 Thread Bharata B Rao
for the pathname in the entire union mounted stack. Also they have been modified to setup the union stack during lookup from dcache cache and from real_lookup(). Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/dcache.c| 16 + fs/namei.c

[RFC][PATCH 7/15] Union-mount mounting

2007-04-17 Thread Bharata B Rao
[EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/namespace.c| 79 +- fs/union.c| 65 + include/linux/fs.h|3 + include/linux/union.h | 33

[RFC][PATCH 6/15] Union-mount dentry reference counting

2007-04-17 Thread Bharata B Rao
Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/dcache.c | 35 -- fs/dnotify.c |5 fs/inotify.c |8 + fs/namei.c | 42 +-- fs/namespace.c | 12 +- fs/proc/base.c

[RFC][PATCH 4/15] Add config options for union mount

2007-04-17 Thread Bharata B Rao
work. printk'ing isn't the right method for getting good debugging output. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/Kconfig | 16 + include/linux/union_debug.h | 76 2

[RFC][PATCH 3/15] Add the whiteout file type

2007-04-17 Thread Bharata B Rao
-out) files by creating a file with this file type. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- include/linux/stat.h |2 ++ 1 files changed, 2 insertions(+) --- a/include/linux/stat.h +++ b/include/linux/stat.h @@ -10,6 +10,7 @@ #if defined

[RFC][PATCH 1/15] Add union mount documentation

2007-04-17 Thread Bharata B Rao
From: Bharata B Rao [EMAIL PROTECTED] Subject: Add union mount documentation. This is an attempt to document some of the implementation details and issues of union mount. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- Documentation/union

[RFC][PATCH 13/15] ext3 whiteout support

2007-04-17 Thread Bharata B Rao
From: Bharata B Rao [EMAIL PROTECTED] Subject: ext3 whiteout support Introduce whiteout support for ext3. Signed-off-by: Bharata B Rao [EMAIL PROTECTED] Signed-off-bg: Jan Blunck [EMAIL PROTECTED] --- fs/ext3/dir.c |2 - fs/ext3/namei.c | 65

[RFC][PATCH 2/15] Add a new mount flag (MNT_UNION) for union mount

2007-04-17 Thread Bharata B Rao
-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/namespace.c| 13 - include/linux/fs.h|2 ++ include/linux/mount.h |1 + 3 files changed, 15 insertions(+), 1 deletion(-) --- a/fs/namespace.c +++ b/fs/namespace.c @@ -376,6 +376,7

[RFC][PATCH 5/15] Introduce union stack

2007-04-17 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] Subject: Introduce union stack. Adds union stack infrastructure to the dentry structure and provides locking routines to walk the union stack. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/Makefile

Re: [RFC][PATCH 5/15] Introduce union stack

2007-04-17 Thread Bharata B Rao
On Tue, Apr 17, 2007 at 05:08:48PM -0500, Serge E. Hallyn wrote: Quoting Bharata B Rao ([EMAIL PROTECTED]): From: Jan Blunck [EMAIL PROTECTED] Subject: Introduce union stack. Adds union stack infrastructure to the dentry structure and provides locking routines to walk the union stack

Re: [RFC][PATCH 0/15] VFS based Union Mount

2007-04-18 Thread Bharata B Rao
On Tue, Apr 17, 2007 at 12:56:24PM -0400, Shaya Potter wrote: Bharata B Rao wrote: No. foo is not visible. While looking for a file in a union mounted directory, the lookup starts from the topmost directory and proceeds downwards if the file isn't present the top layers. If a whiteout

Heads up on VFS based union mount

2007-03-30 Thread Bharata B Rao
The need for a unified/merged view of two or more filesystems/directories has been felt for sometime now. Though a few out-of-the-kernel solutions existed for this, it is only recently that the unionfs(1) solution has gone into -mm. At the time of merging unionfs into -mm, a few questions were

Re: Heads up on VFS based union mount

2007-03-31 Thread Bharata B Rao
On Fri, Mar 30, 2007 at 09:04:16PM +0200, Jan Engelhardt wrote: On Mar 30 2007 15:38, Bharata B Rao wrote: In union mount approach we maintain this stacking information in the dentry structure. When a filesytem is union mounted on a mountpoint, the dentry of the mount root would hold

[RFC PATCH 3/5] Add list_for_each_entry_reverse_from()

2007-12-05 Thread Bharata B Rao
Introduce list_for_each_entry_reverse_from() needed by a subsequent patch. Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- include/linux/list.h | 13 + 1 file changed, 13 insertions(+) --- a/include/linux/list.h +++ b/include/linux/list.h @@ -562,6 +562,19 @@ static inline void

[RFC PATCH 5/5] Directory cache invalidation

2007-12-05 Thread Bharata B Rao
places like mkdir, rmdir, mknod etc. Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/dcache.c|1 fs/namei.c | 13 +++ fs/union.c | 178 - include/linux/dcache.h |4 - include/linux/fs.h |4

[RFC PATCH 1/5] Remove existing directory listing implementation

2007-12-05 Thread Bharata B Rao
Remove the existing readdir implementation. Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/readdir.c | 10 + fs/union.c| 333 -- include/linux/union.h | 23 --- 3 files changed, 8 insertions(+), 358 deletions

[RFC PATCH 0/5] Union Mount: A Directory listing approach with lseek support

2007-12-05 Thread Bharata B Rao
Hi, In Union Mount, the merged view of directories of the union is obtained by enhancing readdir(2)/getdents(2) to read and merge the entries of all the directories by eliminating the duplicates. While we have tried a few approaches for this, none of them could perfectly solve all the problems.

[RFC PATCH 2/5] Add New directory listing approach

2007-12-05 Thread Bharata B Rao
offsets, offsets are defined as linearly increasing indices on this cache and the same is returned to userspace. Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/file_table.c |1 fs/readdir.c | 10 - fs/union.c| 281

[RFC PATCH 4/5] Directory seek support

2007-12-05 Thread Bharata B Rao
Directory seek support. Define the seek behaviour on the stored cache of dirents. Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/read_write.c | 11 --- fs/union.c| 171 +- include/linux/fs.h|8 ++ include/linux

Re: [RFC PATCH 0/5] Union Mount: A Directory listing approach with lseek support

2007-12-06 Thread Bharata B Rao
On Thu, Dec 06, 2007 at 11:01:18AM +0100, Jan Blunck wrote: On Wed, Dec 05, Dave Hansen wrote: I think the key here is what kind of consistency we're trying to provide. If a directory is being changed underneath a reader, what kinds of guarantees do they get about the contents of their

[PATCH 00/13] Use struct path in struct nameidata

2007-10-22 Thread Bharata B Rao
Hi Andrew, Could you please consider these patches for -mm ? These patches apply on 2.6.23-mm1 and are mostly a repost of earlier patches. Patches 1 to 11 have been Acked by Christoph Hellwig. Patch 12 is another instance where (vfsmnt, dentry) to path conversion is possible. Patch 13 is a

[PATCH 01/13] Don't touch fs_struct in drivers

2007-10-22 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] The sound drivers and the pnpbios core test for current-root != NULL. This test seems to be unnecessary since we always have rootfs mounted before initializing the drivers. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL

[PATCH 02/13] Don't touch fs_struct in usermodehelper

2007-10-22 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] This test seems to be unnecessary since we always have rootfs mounted before calling a usermodehelper. Signed-off-by: Andreas Gruenbacher [EMAIL PROTECTED] Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] Acked

[PATCH 03/13] Remove path_release_on_umount()

2007-10-22 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] path_release_on_umount() should only be called from sys_umount(). I merged the function into sys_umount() instead of having in in namei.c. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] Acked-by: Christoph Hellwig

[PATCH 04/13] Move struct path into its own header

2007-10-22 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] Move the definition of struct path into its own header file for further patches. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Andreas Gruenbacher [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] Acked-by: Christoph Hellwig [EMAIL

[PATCH 06/13] Introduce path_put()

2007-10-22 Thread Bharata B Rao
] Signed-off-by: Andreas Gruenbacher [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- arch/alpha/kernel/osf_sys.c |2 arch/mips/kernel/sysirix.c |6 +- arch/parisc/hpux/sys_hpux.c |2 arch/powerpc/platforms/cell

[PATCH 07/13] Use path_put() in a few places instead of {mnt,d}put()

2007-10-22 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] Use path_put() in a few places instead of {mnt,d}put() Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Andreas Gruenbacher [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] Acked-by: Christoph Hellwig [EMAIL PROTECTED] --- fs/afs

[PATCH 08/13] Introduce path_get()

2007-10-22 Thread Bharata B Rao
B Rao [EMAIL PROTECTED] Acked-by: Christoph Hellwig [EMAIL PROTECTED] --- fs/namei.c| 17 +++-- fs/unionfs/super.c|2 +- include/linux/namei.h |6 -- include/linux/path.h |1 + 4 files changed, 17 insertions(+), 9 deletions(-) --- a/fs/namei.c +++ b

[PATCH 09/13] Use struct path in fs_struct

2007-10-22 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] * Use struct path in fs_struct. Signed-off-by: Andreas Gruenbacher [EMAIL PROTECTED] Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] Acked-by: Christoph Hellwig [EMAIL PROTECTED] --- fs/dcache.c | 34

[PATCH 10/13] Make set_fs_{root,pwd} take a struct path

2007-10-22 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] In nearly all cases the set_fs_{root,pwd}() calls work on a struct path. Change the function to reflect this and use path_get() here. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Andreas Gruenbacher [EMAIL PROTECTED] Signed-off-by: Bharata B Rao

[PATCH 11/13] Make __d_path() to take a struct path argument

2007-10-22 Thread Bharata B Rao
From: Andreas Gruenbacher [EMAIL PROTECTED] One less argument to __d_path. All callers to __d_path pass the dentry and vfsmount of a struct path to __d_path. Pass the struct path directly, instead. Signed-off-by: Andreas Gruenbacher [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL

[PATCH 12/13] Use struct path argument in proc_get_link()

2007-10-22 Thread Bharata B Rao
Replace the (vfsmnt, dentry) arguments in proc_inode operation proc_get_link() by struct path. Also, this should eventually allow do_proc_readlink() to call d_path() with a struct path argument. Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/proc/base.c | 60

[PATCH 13/13] Rename {__}d_path() to {__}print_path() and fix comments

2007-10-22 Thread Bharata B Rao
Changes the name of d_path() and __d_path() to print_path() and __print_path() respectively and fixes the kerneldoc comments for print_path(). Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- arch/blackfin/kernel/traps.c |2 - drivers/md/bitmap.c |2 - drivers/usb

Re: [PATCH 00/13] Use struct path in struct nameidata

2007-10-22 Thread Bharata B Rao
On Mon, Oct 22, 2007 at 03:57:58PM +0200, Christoph Hellwig wrote: Any reason we've got this patchset posted by three people now? :) Two reasons actually ! - The set of patches posted by Jan last was on 2.6.23-rc8-mm1. So I thought let me help Andrew a bit by making them available on latest

Re: [PATCH 00/13] Use struct path in struct nameidata

2007-10-23 Thread Bharata B Rao
On Tue, Oct 23, 2007 at 10:43:05AM +0200, Jan Blunck wrote: The thing is: how do we keep going from here? Do you want to send my patches in the future or are you going to ask me before sending things out? We don't need to duplicate the work here. I already put my quilt stack into a public

Re: [RFC] Union Mount: Readdir approaches

2007-09-07 Thread Bharata B Rao
On Fri, Sep 07, 2007 at 04:31:26PM +0900, [EMAIL PROTECTED] wrote: When the first readdir is issued: - call vfs_readdir for every underlying opened dir (file) object. - store every entry to either the hash table for the result or the whiteout, when the same-named entry didn't exist in the

[RFC] Union Mount: Readdir approaches

2007-09-06 Thread Bharata B Rao
Hi, Any filesystem namespace unification solution (Union Mount, Unionfs) needs to provide a unified or merged view of directory contents. Typically this is done by reading the directory entries of all the union'ed layers (starting from the top and working downwards) and merging the result by

Re: [RFC] Union Mount: Readdir approaches

2007-09-09 Thread Bharata B Rao
On Fri, Sep 07, 2007 at 01:39:41PM -0400, Josef 'Jeff' Sipek wrote: On Fri, Sep 07, 2007 at 01:28:55PM +0530, Bharata B Rao wrote: On Fri, Sep 07, 2007 at 04:31:26PM +0900, [EMAIL PROTECTED] wrote: When the first readdir is issued: - call vfs_readdir for every underlying opened dir

Re: [RFC] Union Mount: Readdir approaches

2007-09-09 Thread Bharata B Rao
On Fri, Sep 07, 2007 at 01:54:18PM -0400, Erez Zadok wrote: In message [EMAIL PROTECTED], Josef 'Jeff' Sipek writes: On Fri, Sep 07, 2007 at 01:28:55PM +0530, Bharata B Rao wrote: On Fri, Sep 07, 2007 at 04:31:26PM +0900, [EMAIL PROTECTED] wrote: When the first readdir is issued

Re: [RFC 16/26] union-mount: Introduce union_mount structure

2007-08-05 Thread Bharata B Rao
union with a subdir union between topmost and bottom layer. Now if you create the same-named directory in the middle layer from outside of this union, you hit the above BUG_ON. The below patch fixes this and it applies on top of all of your patches. From: Bharata B Rao [EMAIL PROTECTED] Direct

Re: [RFC 20/26] union-mount: Simple union-mount readdir implementation

2007-08-06 Thread Bharata B Rao
-i_mutex); + } + + return res; +} Here you are doing readdir_union for all the directories under a union mount point, which is an overhead (building the readdir cache). Here is the fix: From: Bharata B Rao [EMAIL PROTECTED] Within a union mount point, there can be directories which don't

Re: [RFC 18/26] union-mount: Changes to the namespace handling

2007-08-08 Thread Bharata B Rao
pivot_root of union mount points. Here is an attempt to achieve that. From: Bharata B Rao [EMAIL PROTECTED] Allow pivot_root to work with union mount points. If the current root filesystem is a union, then allow pivot_root only if it's last component is a root, which allows it to be detached

Re: [RFC 19/26] union-mount: Make lookup work for union-mounted file systems

2007-08-08 Thread Bharata B Rao
On Mon, Jul 30, 2007 at 06:13:42PM +0200, Jan Blunck wrote: On union-mounted file systems the lookup function must also visit lower layers of the union-stack when doing a lookup. This patches add support for union-mounts to cached lookups and real lookups. We have 3 different styles of

Re: [RFC 00/26] VFS based Union Mount (V2)

2007-08-02 Thread Bharata B Rao
On Mon, Jul 30, 2007 at 06:13:23PM +0200, Jan Blunck wrote: Here is another post of the VFS based union mount implementation. Unlike the traditional mount which hides the contents of the mount point, union mounts present the merged view of the mount point and the mounted filesytem. Doesn't

RE: [BUG] Fusion MPT Base Driver initialization failure with kdum p

2005-07-13 Thread Bharata B Rao
On Tue, 2005-07-12 at 12:15 -0600, Moore, Eric Dean wrote: I've seen the report. I need more info from Bharata on how to reproduce. Perhaps you can send me email offline which provides specific instructions to how to configure kdump, how to capture the dump, and what you did to crash your

[BUG] Fusion MPT Base Driver initialization failure with kdump

2005-07-12 Thread Bharata B Rao
Fusion MPT base driver fails during initialization when kdump capture kernel boots. The details of the problem are reported here: http://bugzilla.kernel.org/show_bug.cgi?id=4870 Regards, Bharata. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH] i386 boottime for_each_cpu broken

2005-08-11 Thread Bharata B Rao
On Thu, Aug 11, 2005 at 04:54:44AM +, Zwane Mwaikambo wrote: for_each_cpu walks through all processors in cpu_possible_map, which is defined as cpu_callout_map on i386 and isn't initialised until all processors have been booted. This breaks things which do for_each_cpu iterations early

Re: [PATCH -mm 5/5][AIO] - Add listio syscall support

2007-01-24 Thread Bharata B Rao
On Tue, Jan 23, 2007 at 10:04:33PM -0800, Andrew Morton wrote: On Wed, 17 Jan 2007 10:55:54 +0100 Sébastien Dugué [EMAIL PROTECTED] wrote: +void lio_check(struct lio_event *lio) +{ + int ret; + + ret = atomic_dec_and_test(lio-lio_users); + + if (unlikely(ret)

[PATCHSET 3][PATCH 0/5][AIO] - AIO completion signal notification v4

2007-01-04 Thread Bharata B Rao
Hi Here is a repost of Sebastien's AIO completion signal notification v4 patches along with the syscall based listio support patch. The goal of this patchset is to improve the POSIX AIO support in the kernel. While the 1st 4 patches provide the AIO completion signal notification

[PATCHSET 3][PATCH 1/5][AIO] - Rework compat_sys_io_submit

2007-01-04 Thread Bharata B Rao
for io_submit_one() to find the sigevents. Signed-off-by: Sébastien Dugué [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/compat.c | 61 +--- 1 files changed, 34 insertions(+), 27 deletions(-) diff -puN fs/compat.c~rework

[PATCHSET 3][PATCH 2/5][AIO] - fix aio.h includes

2007-01-04 Thread Bharata B Rao
Fix the double inclusion of linux/uio.h in linux/aio.h From: Sébastien Dugué [EMAIL PROTECTED] Fix the double inclusion of linux/uio.h in linux/aio.h Signed-off-by: Sébastien Dugué [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- include/linux/aio.h |1 - 1 files

[PATCHSET 3][PATCH 3/5][AIO] - Make good_sigevent non-static

2007-01-04 Thread Bharata B Rao
it belongs, and make it non-static so that it can be used by other subsystems. Signed-off-by: Sébastien Dugué [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- include/linux/signal.h |1 + kernel/posix-timers.c | 17 - kernel/signal.c| 24

[PATCHSET 3][PATCH 4/5][AIO] - AIO completion signal notification

2007-01-04 Thread Bharata B Rao
PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/aio.c| 115 ++-- fs/compat.c | 18 +++ include/linux/aio.h | 12 + include/linux/aio_abi.h |3 - kernel/signal.c |2 5 files

[PATCHSET 3][PATCH 5/5][AIO] - Add listio support

2007-01-04 Thread Bharata B Rao
to the system call for this purpose ? This patch along with the previous 4 AIO completion signal notification patches have been tested using libposix-aio library. Tests have been done on x86 and x86_64 boxes. The compat syscall changes have been tested on x86_64 system. From: Bharata B Rao [EMAIL

Re: [PATCH -mm 4/4][AIO] - Listio support

2006-11-27 Thread Bharata B Rao
the lio_users count and eventually signal the user process when all the requests in the group have completed. Sebastien Dugue's listio patch has been modified to arrive at this patch. Signed-off-by: Sebastien Dugue [EMAIL PROTECTED] Signed-off-by: Laurent Vivier [EMAIL PROTECTED] Signed-off-by: Bharata B

[RFC] AIO: listio support - syscall approach

2006-12-04 Thread Bharata B Rao
Dugué [EMAIL PROTECTED] Signed-off-by: Laurent Vivier [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- arch/i386/kernel/syscall_table.S |1 fs/aio.c | 175 ++- fs/compat.c | 111

Re: [PATCH -mm 3/5][AIO] - export good_sigevent()

2006-12-04 Thread Bharata B Rao
On Wed, Nov 29, 2006 at 11:32:34AM +0100, Sébastien Dugué wrote: snip +/*** + * good_sigevent - check and get target task from a sigevent. + * @event: the sigevent to be checked + * + * This function must be called with tasklist_lock held for reading. + */ +struct task_struct *

Re: -mm merge plans for 2.6.21

2007-02-08 Thread Bharata B Rao
Andrew, On 2/9/07, Andrew Morton [EMAIL PROTECTED] wrote: fsaio-add-a-wait-queue-arg-to-the-wait_bit-action-routine.patch fsaio-add-a-wait-queue-arg-to-the-wait_bit-action-routine-gfs2-fix.patch fsaio-rename-__lock_page-to-lock_page_blocking.patch

Re: [PATCH 6/7] d_path: Make d_path() use a struct path

2007-11-01 Thread Bharata B Rao
On 10/29/07, Jan Blunck [EMAIL PROTECTED] wrote: Did you miss the d_path() caller arch/blackfin/kernel/traps.c:printk_address() ? Regards, Bharata. -- Men come and go but mountains remain -- Ruskin Bond. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a

[RFC PATCH 0/4] New approach to VFS based union mount

2007-06-19 Thread Bharata B Rao
Hi, The earlier approach to VFS based union mounts posted here didn't work for all cases of mounts (specially bind mounts). Hence, I have worked on this new approach which is more generic and hopefully should work in most cases. This approach fundamentally changes the way union stacks are

[RFC PATCH 1/4] Union mount documentation.

2007-06-19 Thread Bharata B Rao
From: Bharata B Rao [EMAIL PROTECTED] Subject: Union mount documentation. Adds union mount documentation. Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- Documentation/union-mounts.txt | 232 + 1 files changed, 232 insertions(+) --- /dev/null +++ b

[RFC PATCH 2/4] Mount changes to support union mount.

2007-06-19 Thread Bharata B Rao
From: Bharata B Rao [EMAIL PROTECTED] Subject: Mount changes to support union mount. Adds union mount support. This patch adds a new mount type for union mount (MNT_UNION) and changes the mount path to build a union stack during mount. The routines for supporting the creation, traversal

[RFC PATCH 3/4] Lookup changes to support union mount.

2007-06-19 Thread Bharata B Rao
From: Bharata B Rao [EMAIL PROTECTED] Subject: Lookup changes to support union mount. Adds support for looking up dentries inside a union mount point. This patch modifies the do_lookup() routine to look beyond the top layer for union mount points/directories. Union mount versions of dcache

[RFC PATCH 4/4] Directory listing support for union mounted directories.

2007-06-19 Thread Bharata B Rao
From: Bharata B Rao [EMAIL PROTECTED] Subject: Directory listing support for union mounted directories. Modifies readdir()/getdents() to support union mounted directories. This patch adds support to readdir()/getdents() to read directory entries from all the directories of the union stack

Re: [RFC PATCH 2/4] Mount changes to support union mount.

2007-06-20 Thread Bharata B Rao
(replying from a different ID as you didn't copy me on reply) On 6/20/07, Jan Blunck [EMAIL PROTECTED] wrote: On Wed, 20 Jun 2007 11:22:41 +0530, Bharata B Rao wrote: +/* + * When propagating mount events to peer group, this is called under + * vfsmount_lock. Hence using GFP_ATOMIC

Re: [RFC PATCH 3/4] Lookup changes to support union mount.

2007-06-20 Thread Bharata B Rao
On 6/20/07, Jan Blunck [EMAIL PROTECTED] wrote: On Wed, 20 Jun 2007 11:23:26 +0530, Bharata B Rao wrote: +/* + * Looks for the given @name in dcache by walking through all the layers + * of the union stack, starting from the top. + * FIXME: If we don't find the dentry in a upper layer, we

Re: [RFC PATCH 1/4] Union mount documentation.

2007-06-20 Thread Bharata B Rao
On 6/20/07, Jan Blunck [EMAIL PROTECTED] wrote: On Wed, 20 Jun 2007 11:21:57 +0530, Bharata B Rao wrote: snip Well done. I like your approach much more than the simple chaining of dentries. When I told you about the idea of maintaining a list of dentry,vfsmount objects I always though about one

Re: [RFC PATCH 1/4] Union mount documentation.

2007-06-20 Thread Bharata B Rao
On 6/20/07, Erez Zadok [EMAIL PROTECTED] wrote: In message [EMAIL PROTECTED], Jan Blunck writes: On Tue, 19 Jun 2007 22:59:51 -0700, Arjan van de Ven wrote: first of all I'm happy to see that people are still working on unionfs; I'd love to have functionality like this show up in Linux.

Re: [PATCH] Fix for bad lock balance in Containers

2007-06-27 Thread Bharata B Rao
On Tue, Jun 26, 2007 at 10:30:11AM +0530, Dhaval Giani wrote: --- linux-2.6.22-rc4/kernel/container.c 2007-06-13 15:38:32.0 +0530 +++ old/kernel/container.c2007-06-25 00:55:03.0 +0530 @@ -995,6 +995,7 @@ static int container_get_sb(struct file_

Re: [RFC][PATCH 10/14] In-kernel file copy between union mounted filesystems

2007-05-23 Thread Bharata B Rao
On Tue, May 22, 2007 at 08:35:17AM -0400, Shaya Potter wrote: Bharata B Rao wrote: In case of regular files, when we copyup a file, we are actually preventing any writes to the lower layers (which we have designated as read only). Applying the same logic to devices, what do we achieve

[RFC][PATCH 0/14] VFS based Union Mount(v1)

2007-05-14 Thread Bharata B Rao
Here is another post of vfs based union mount implementation. Union mount provides the filesytem namespace unification feature. Unlike the traditional mounts which hide the contents of the mount point, the union mount presents the merged view of the mount point and the mounted filesytem. These

[RFC][PATCH 1/14] Add union mount documentation

2007-05-14 Thread Bharata B Rao
From: Bharata B Rao [EMAIL PROTECTED] Subject: Add union mount documentation. This is an attempt to document some of the implementation details and issues of union mount. Signed-off-by: Bharata B Rao [EMAIL PROTECTED] Signed-off-by: Jan Blunck [EMAIL PROTECTED] --- Documentation/union

[RFC][PATCH 2/14] Add a new mount flag (MNT_UNION) for union mount

2007-05-14 Thread Bharata B Rao
-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/namespace.c| 14 +- include/linux/fs.h|2 ++ include/linux/mount.h |1 + 3 files changed, 16 insertions(+), 1 deletion(-) --- a/fs/namespace.c +++ b/fs/namespace.c @@ -442,6 +442,7

[RFC][PATCH 3/14] Add the whiteout file type

2007-05-14 Thread Bharata B Rao
-out) files by creating a file with this file type. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- include/linux/stat.h |2 ++ 1 files changed, 2 insertions(+) --- a/include/linux/stat.h +++ b/include/linux/stat.h @@ -10,6 +10,7 @@ #if defined

[RFC][PATCH 4/14] Add config options for union mount

2007-05-14 Thread Bharata B Rao
work. printk'ing isn't the right method for getting good debugging output. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/Kconfig | 16 + include/linux/union_debug.h | 76 2

[RFC][PATCH 5/14] Introduce union stack

2007-05-14 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] Subject: Introduce union stack. Adds union stack infrastructure to the dentry structure and provides locking routines to walk the union stack. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/Makefile

[RFC][PATCH 6/14] Union-mount dentry reference counting

2007-05-14 Thread Bharata B Rao
Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/dcache.c | 43 ++- fs/dnotify.c |5 fs/inotify.c |8 + fs/namei.c | 42 +-- fs/namespace.c | 12 +- fs/proc/base.c

[RFC][PATCH 7/14] Union-mount mounting

2007-05-14 Thread Bharata B Rao
[EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/namespace.c| 90 ++ fs/union.c| 71 +++ include/linux/fs.h|3 + include/linux/union.h | 33 ++ 4

[RFC][PATCH 8/14] Union-mount lookup

2007-05-14 Thread Bharata B Rao
for the pathname in the entire union mounted stack. Also they have been modified to setup the union stack during lookup from dcache cache and from real_lookup(). Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/dcache.c| 16 + fs/namei.c

[RFC][PATCH 9/14] Union-mount readdir

2007-05-14 Thread Bharata B Rao
From: Bharata B Rao [EMAIL PROTECTED] Subject: Union mount readdir This modifies the readdir()/getdents() routines to read directory entries from toplevel and the lower directories of a union and present a merged view. The directory entries are read starting from the top layer

[RFC][PATCH 10/14] In-kernel file copy between union mounted filesystems

2007-05-14 Thread Bharata B Rao
to the topmost union layer first. This patch uses the do_splice_direct() for doing the in-kernel file copy. Signed-off-by: Bharata B Rao [EMAIL PROTECTED] Signed-off-by: Jan Blunck [EMAIL PROTECTED] --- fs/namei.c| 46 + fs/union.c| 415

[RFC][PATCH 11/14] VFS whiteout handling

2007-05-14 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] Subject: VFS whiteout handling Introduce white-out handling in the VFS. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/inode.c| 17 + fs/namei.c| 476

[RFC][PATCH 12/14] ext2 whiteout support

2007-05-14 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] Subject: ext2 whiteout support Introduce whiteout support to ext2. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- fs/ext2/dir.c |2 ++ fs/ext2/namei.c | 17 + fs/ext2

[RFC][PATCH 13/14] ext3 whiteout support

2007-05-14 Thread Bharata B Rao
From: Bharata B Rao [EMAIL PROTECTED] Subject: ext3 whiteout support Introduce whiteout support for ext3. Signed-off-by: Bharata B Rao [EMAIL PROTECTED] Signed-off-by: Jan Blunck [EMAIL PROTECTED] --- fs/ext3/dir.c |2 - fs/ext3/namei.c | 62

[RFC][PATCH 14/14] tmpfs whiteout support

2007-05-14 Thread Bharata B Rao
From: Jan Blunck [EMAIL PROTECTED] Subject: tmpfs whiteout support Introduce whiteout support to tmpfs. Signed-off-by: Jan Blunck [EMAIL PROTECTED] Signed-off-by: Bharata B Rao [EMAIL PROTECTED] --- mm/shmem.c |9 - 1 files changed, 8 insertions(+), 1 deletion(-) --- a/mm/shmem.c

Re: [RFC][PATCH 9/14] Union-mount readdir

2007-05-14 Thread Bharata B Rao
On Mon, May 14, 2007 at 12:43:43PM +0200, Carsten Otte wrote: On 5/14/07, Bharata B Rao [EMAIL PROTECTED] wrote: +/* This is a copy from fs/readdir.c */ +struct getdents_callback { + struct linux_dirent __user *current_dir; + struct linux_dirent __user *previous; + int

Re: [RFC][PATCH 13/14] ext3 whiteout support

2007-05-15 Thread Bharata B Rao
On Mon, May 14, 2007 at 01:16:57PM -0700, Badari Pulavarty wrote: On Mon, 2007-05-14 at 15:14 +0530, Bharata B Rao wrote: From: Bharata B Rao [EMAIL PROTECTED] Subject: ext3 whiteout support Introduce whiteout support for ext3. Signed-off-by: Bharata B Rao [EMAIL PROTECTED] Signed

Re: [RFC][PATCH 5/14] Introduce union stack

2007-05-15 Thread Bharata B Rao
On Mon, May 14, 2007 at 03:40:57PM -0700, Badari Pulavarty wrote: On Mon, 2007-05-14 at 15:10 +0530, Bharata B Rao wrote: snip + +/* Shouldn't be called with last reference to union_info */ +static inline void union_put_and_unlock(struct union_info *uinfo) +{ + union_put(uinfo

Re: [RFC][PATCH 2/14] Add a new mount flag (MNT_UNION) for union mount

2007-05-15 Thread Bharata B Rao
On Mon, May 14, 2007 at 10:38:46PM +0200, Jan Engelhardt wrote: On May 14 2007 15:09, Bharata B Rao wrote: Introduce MNT_UNION, MS_UNION and FS_WHT flags. There are the necessary flags for doing mount /dev/hda3 /mnt -o union You need additional patches for util-linux

Re: [RFC][PATCH 7/14] Union-mount mounting

2007-05-15 Thread Bharata B Rao
On Tue, May 15, 2007 at 09:29:39AM +0200, Jan Engelhardt wrote: On May 14 2007 15:11, Bharata B Rao wrote: TODO: bind and move mounts aren't yet supported with union mounts. Are the semantics already set? Not yet. @@ -294,6 +294,10 @@ static struct vfsmount *clone_mnt(struct

Re: [RFC][PATCH 8/14] Union-mount lookup

2007-05-15 Thread Bharata B Rao
On Tue, May 15, 2007 at 09:57:24AM +0200, Jan Engelhardt wrote: On May 14 2007 15:12, Bharata B Rao wrote: +struct dentry * d_lookup_single(struct dentry *parent, struct qstr *name) +{ +struct dentry *dentry; +unsigned long seq; + +do { +seq

  1   2   3   >