lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 23 Jun 2010 10:43:10 +0200
From:	Alex Riesen <raa.lkml@...il.com>
To:	Miklos Szeredi <miklos@...redi.hu>
Cc:	Valerie Aurora <vaurora@...hat.com>, viro@...iv.linux.org.uk,
	jblunck@...e.de, hch@...radead.org, linux-kernel@...r.kernel.org,
	linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH 17/38] union-mount: Union mounts documentation

On Mon, Jun 21, 2010 at 15:14, Miklos Szeredi <miklos@...redi.hu> wrote:
> On Thu, 17 Jun 2010, Valerie Aurora wrote:
>> On Thu, Jun 17, 2010 at 10:01:30AM +0200, Alex Riesen wrote:
>> > On Tue, Jun 15, 2010 at 20:39, Valerie Aurora <vaurora@...hat.com> wrote:
>> > > +git://git.kernel.org/pub/scm/fs/ext2/val/e2fsprogs.git
>> > > +
>> > > +Currently, whiteout directory entries are not returned to userland.
>> > > +While the directory type for whiteouts, DT_WHT, has been defined for
>> > > +many years, very little userland code handles them. ??Userland will
>> > > +never see fallthru directory entries.
>> >
>> > This may be a dumb question (I must admit I did only very little research),
>> > but how does one cleanup the topmost layer of whiteouts and fallthroughs,
>> > so that the entries of lower layer(s) can be made visible again?
>>
>> I'm not sure how best to do this.  We don't want to add more system
>> calls.  One thought of mine has been to do this offline, when the file
>> system is unmounted.  For example, e2fsck could add a feature to
>> delete whiteouts and fallthrus.  Another option is to add a flag to an
>> existing system call.
>
> One more advantage of doing whiteouts, etc. with hard links and
> extended attributes instead of as special filesystem objects.  That
> way they are visible (unless part of a union) and can be treated as
> normal filesystem objects.

But then you have to break union to cleanup the topmost filesystem.
That'll surely take the mount filesystem (in its working configuration, at
least) offline. Not much better than using fsck.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ