Re: [RFC PATCH 0/2] Union Mount: Directory listing in glibc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 29, 2008 at 9:34 PM, Jan Blunck <jblunck@xxxxxxx> wrote:
> On Tue, Apr 29, bsn.0007@xxxxxxxxx wrote:
>
>  > The RFC discussed about the information glibc readdir needs to get about
>  > union mounted directories and I have assumed the following information
>  > to be available from the kernel for this implementation.
>  >
>  > - Kernel would return all the dirents (including duplicates and whiteouts)
>  > starting from the topmost directory of the union.
>  >
>  > - Indication that this directory is a union mounted directory
>  >       I have assumed that kernel would return a "." whiteout as the first
>  > directory entry of the union. This would tell glibc readdir(3) that it is
>  > working with a union mounted directory and it needs to do duplicate
>  > elimination and whiteout suppression. It starts building a dirent cache
>  > for this purpose.
>
>  IIRC the intention was to emit a "." whiteout when "changing" from one
>  directory to the next. That means when the first directory is completely read
>  the whiteout is emitted. After that glibc knows to start duplicate
>  removal.
>

Yes the intention was to get a "." whiteout when changing from one
directory to next and thats essentially what i have assumed, for
starting duplicate elimination.
Along with that i have also assumed to get a "." whiteout as the first
directory entry of the union, so as to indicate to glibc that the
directory is a union mounted directory.

Regards
Nagabhushan
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux