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
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.
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
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
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
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
, 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
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
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
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
[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
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
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
-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
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
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
-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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
]
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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)
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
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
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
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
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
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
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
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
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 *
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
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
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
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
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
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
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
(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
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
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
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.
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_
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
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
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
-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
-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
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
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
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
[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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 284 matches
Mail list logo