Subject: Re: Pending entries support for fileassoc(9)
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Elad Efrat <firstname.lastname@example.org>
Date: 12/03/2007 10:26:47
der Mouse wrote:
>> Attached is a simple diff adding support for "pending entries" to
>> fileassoc(9). Pending entries are entries for files that do not
>> necessarily exist yet, or in other words, live on file-systems that
>> are not mounted.
> ISTM that it might be good to have a way to attach things to "inner"
> versions of files. Consider a system with /foo and /foo/bin as mount
> points, with each of those filesystems containing a /foo/bin/bar, and a
> desire to attach something to the version in the /foo/bin filesystem
> (possibly in addition to, possibly instead of, the other one).
> Or is that just Too Hard at present?
Given you are able to specify the mount-point, it should be easy; the
code in fileassoc_add_pending() already compares the mounted file-system
with the files in the queue. Supporting the feature you're proposing
will require keeping a "mount-point" entry/hint with each fileassoc
entry -- pending or not -- and just doing the right thing with it.
...is there a reason to group the two features together? :)