Re: Unionmount. Basic details

2009-05-17 Thread Sergiu Ivanov
Hello, On Fri, May 15, 2009 at 9:58 PM, wrote: > On Tue, Apr 28, 2009 at 09:47:58PM +0300, Sergiu Ivanov wrote: >> I see... Although I'm familiar with your position as to the power of >> the user over his software, I cannot really understand what ``enough >> rope'' philosophy means... I've googl

Re: Unionmount. Basic details

2009-05-16 Thread olafBuddenhagen
Hi, On Sat, May 02, 2009 at 08:16:32PM +0200, Carl Fredrik Hammar wrote: > On Sun, Apr 26, 2009 at 06:28:51AM +0200, olafbuddenha...@gmx.net > wrote: > > On Thu, Apr 09, 2009 at 10:09:04PM +0200, Carl Fredrik Hammar wrote: > > I do not see much point in mounting several file systems at the same >

Re: Unionmount. Basic details

2009-05-16 Thread olafBuddenhagen
Hi, On Mon, Apr 27, 2009 at 09:40:58PM +0300, Sergiu Ivanov wrote: > for instance, unionfs is still read-only; Really? I thought Gianluca worked on write support at some point... Perhaps he never commited his changes :-( -antrik-

Re: Unionmount. Basic details

2009-05-16 Thread olafBuddenhagen
Hi, On Tue, Apr 28, 2009 at 09:47:58PM +0300, Sergiu Ivanov wrote: > writes: > > Even if you had found examples of translators that really don't seem > > to make any sense being union-mounted (which seems quite probable > > actually), I still think it should not be up to the translators to > > d

Re: Unionmount. Basic details

2009-05-04 Thread Carl Fredrik Hammar
Hi, On Sun, Apr 26, 2009 at 10:48:13PM +0200, olafbuddenha...@gmx.net wrote: > On Sat, Apr 11, 2009 at 03:03:45PM +0200, Carl Fredrik Hammar wrote: > > On Fri, Apr 10, 2009 at 08:35:07PM +0300, Sergiu Ivanov wrote: > > > > Also, I'm not aware of anybody still doing any changes to unionfs > > > :-

Re: Unionmount. Basic details

2009-05-02 Thread Carl Fredrik Hammar
Hello, On Sun, Apr 26, 2009 at 06:28:51AM +0200, olafbuddenha...@gmx.net wrote: > On Thu, Apr 09, 2009 at 10:09:04PM +0200, Carl Fredrik Hammar wrote: > > On Wed, Apr 08, 2009 at 07:10:26PM +0200, olafbuddenha...@gmx.net > > wrote: > > > > while unionfs must be able to handle an arbitrary number

Re: Unionmount. Basic details

2009-04-28 Thread Sergiu Ivanov
Hello, writes: > On Thu, Apr 09, 2009 at 10:03:27PM +0300, Sergiu Ivanov wrote: >> writes: >> > On Mon, Apr 06, 2009 at 04:26:25PM +0300, Sergiu Ivanov wrote: > >> >> This approach will require adding some user-modifiable flag to the >> >> corresponding translator library that will allow to swit

Re: Unionmount. Basic details

2009-04-28 Thread Sergiu Ivanov
Hello, writes: > On Fri, Apr 10, 2009 at 08:51:03PM +0300, Sergiu Ivanov wrote: >> writes: >> > On Wed, Apr 08, 2009 at 08:17:30PM +0300, Sergiu Ivanov wrote: > >> >> You see, I suppose that some time later we will be adding some >> >> specific merging rules, which would be very difficult (if no

Re: Unionmount. Basic details

2009-04-27 Thread Sergiu Ivanov
Hello, writes: > On Fri, Apr 10, 2009 at 08:35:07PM +0300, Sergiu Ivanov wrote: >> Carl Fredrik Hammar writes: > >> > Well it isn't simpler in the sense that we'd need to maintain two >> > very similar yet different code bases. Improvements to one would >> > likely get ported to the other. > [.

Re: Unionmount. Basic details

2009-04-26 Thread Sergiu Ivanov
Hello, writes: > On Mon, Apr 06, 2009 at 04:26:25PM +0300, Sergiu Ivanov wrote: >> OTOH, implementing unionmount as extensions to translator libraries >> would mean faster operation and automatic inclusion of the >> functionality in *every* existing translators, but modifying something >> would r

Re: Unionmount. Basic details

2009-04-26 Thread olafBuddenhagen
Hi, On Thu, Apr 09, 2009 at 07:29:27PM +0200, Carl Fredrik Hammar wrote: > On Tue, Apr 07, 2009 at 12:20:40AM +0300, Sergiu Ivanov wrote: > > This would yield faster code (no extra context switch, the shadow > > node is within the main translator) and more control over the > > merging functionali

Re: Unionmount. Basic details

2009-04-26 Thread olafBuddenhagen
Hi, On Thu, Apr 09, 2009 at 10:03:27PM +0300, Sergiu Ivanov wrote: > writes: > > On Mon, Apr 06, 2009 at 04:26:25PM +0300, Sergiu Ivanov wrote: > >> This approach will require adding some user-modifiable flag to the > >> corresponding translator library that will allow to switch on and > >> off

Re: Unionmount. Basic details

2009-04-26 Thread olafBuddenhagen
Hi, On Fri, Apr 10, 2009 at 08:51:03PM +0300, Sergiu Ivanov wrote: > writes: > > On Wed, Apr 08, 2009 at 08:17:30PM +0300, Sergiu Ivanov wrote: > >> You see, I suppose that some time later we will be adding some > >> specific merging rules, which would be very difficult (if not > >> impossible)

Re: Unionmount. Basic details

2009-04-26 Thread olafBuddenhagen
Hi, On Thu, Apr 09, 2009 at 08:08:58PM +0200, Carl Fredrik Hammar wrote: > > > unionmount is expected to merge the filesystem on which it sits > > > with the filesystem exposed by the translator it is asked to start > > > in unionmount mode (further referred to as ``the Translator''). > > > > Na

Re: Unionmount. Basic details

2009-04-26 Thread olafBuddenhagen
Hi, On Sat, Apr 11, 2009 at 03:03:45PM +0200, Carl Fredrik Hammar wrote: > On Fri, Apr 10, 2009 at 08:35:07PM +0300, Sergiu Ivanov wrote: > > Also, I'm not aware of anybody still doing any changes to unionfs > > :-) [...] > Also, in many ways unionfs seems like an good candidate to make use of >

Re: Unionmount. Basic details

2009-04-26 Thread olafBuddenhagen
Hi, On Fri, Apr 10, 2009 at 08:35:07PM +0300, Sergiu Ivanov wrote: > Carl Fredrik Hammar writes: > > Well it isn't simpler in the sense that we'd need to maintain two > > very similar yet different code bases. Improvements to one would > > likely get ported to the other. [...] > Also, I'm not a

Re: Unionmount. Basic details

2009-04-26 Thread olafBuddenhagen
Hi, On Fri, Apr 10, 2009 at 07:29:43PM +0300, Sergiu Ivanov wrote: > writes: > >settrans veth /hurd/unionfs veth veth,,eth-multiplexer > > unionfs has option ``-u'' which tells it to include the underlying > node in the list of the merged filesystems, so this command should be > rewritten l

Re: Unionmount. Basic details

2009-04-26 Thread olafBuddenhagen
Hi, On Thu, Apr 09, 2009 at 10:09:04PM +0200, Carl Fredrik Hammar wrote: > On Wed, Apr 08, 2009 at 07:10:26PM +0200, olafbuddenha...@gmx.net > wrote: > > while unionfs must be able to handle an arbitrary number of merged > > locations, for unionmount it's always exactly two. This simplifies > > t

Re: Unionmount. Basic details

2009-04-17 Thread Carl Fredrik Hammar
Hi! On Mon, Apr 13, 2009 at 12:41:07AM +0300, Sergiu Ivanov wrote: > [snip] > > >> This is true that in the greater part of the operation of unionmount > >> there will be no difference in speed (the difference will be at startup, > >> of course). However, I still don't have sufficiently compelling

Re: Unionmount. Basic details

2009-04-14 Thread Sergiu Ivanov
Hello, Da Zheng writes: > Carl Fredrik Hammar wrote: >>> It is not fully clear right now -- I realized that there is another >>> decision to make: should the unionmount translator be directly visible >>> as the translator attached to the mount node; or should it serve as a >>> proxy, forwarding a

Re: Unionmount. Basic details

2009-04-13 Thread Da Zheng
Hi, Carl Fredrik Hammar wrote: It is not fully clear right now -- I realized that there is another decision to make: should the unionmount translator be directly visible as the translator attached to the mount node; or should it serve as a proxy, forwarding all requests on the filesystem port to

Re: Unionmount. Basic details

2009-04-12 Thread Sergiu Ivanov
Hello, Carl Fredrik Hammar writes: > On Fri, Apr 10, 2009 at 08:35:07PM +0300, Sergiu Ivanov wrote: >> Anyway, I'm not sure whether bringing some details in the code in >> unionmount up to date will require ``porting'', since I'm going to touch >> only a very small portion of the code, leaving th

Re: Unionmount. Basic details

2009-04-11 Thread Carl Fredrik Hammar
Hello, On Fri, Apr 10, 2009 at 08:35:07PM +0300, Sergiu Ivanov wrote: > Carl Fredrik Hammar writes: > > On Tue, Apr 07, 2009 at 12:20:40AM +0300, Sergiu Ivanov wrote: > >> > [...] > >> > If you're uncomfortable keeping around a process just to implement > >> > a shadow node, consider implementing

Re: Unionmount. Basic details

2009-04-10 Thread Sergiu Ivanov
writes: > On Wed, Apr 08, 2009 at 08:17:30PM +0300, Sergiu Ivanov wrote: > >> You see, I suppose that some time later we will be adding some >> specific merging rules, which would be very difficult (if not >> impossible) with the approach you are suggesting (about reusing >> unionfs as a whole). >

Re: Unionmount. Basic details

2009-04-10 Thread Sergiu Ivanov
Carl Fredrik Hammar writes: > On Tue, Apr 07, 2009 at 12:20:40AM +0300, Sergiu Ivanov wrote: >> > [...] >> > If you're uncomfortable keeping around a process just to implement >> > a shadow node, consider implementing a dedicated shadow node server. >> > That just sitts on e.g. `/server/shadow' an

Re: Unionmount. Basic details

2009-04-10 Thread Carl Fredrik Hammar
On Fri, Apr 10, 2009 at 07:18:34PM +0300, Sergiu Ivanov wrote: > Carl Fredrik Hammar writes: > >> I actually realized a couple of days ago that unionmount could probably > >> be done by a combination of nsmux and unionfs: I think it should be > >> possible to do something like > >> > >>settra

Re: Unionmount. Basic details

2009-04-10 Thread Sergiu Ivanov
writes: > I actually realized a couple of days ago that unionmount could probably > be done by a combination of nsmux and unionfs: I think it should be > possible to do something like > >settrans veth /hurd/unionfs veth veth,,eth-multiplexer unionfs has option ``-u'' which tells it to include

Re: Unionmount. Basic details

2009-04-10 Thread Sergiu Ivanov
Carl Fredrik Hammar writes: >> I actually realized a couple of days ago that unionmount could probably >> be done by a combination of nsmux and unionfs: I think it should be >> possible to do something like >> >>settrans veth /hurd/unionfs veth veth,,eth-multiplexer >> >> (I didn't want to b

Re: Unionmount. Basic details

2009-04-09 Thread olafBuddenhagen
Hi, On Wed, Apr 08, 2009 at 08:17:30PM +0300, Sergiu Ivanov wrote: > You see, I suppose that some time later we will be adding some > specific merging rules, which would be very difficult (if not > impossible) with the approach you are suggesting (about reusing > unionfs as a whole). On the cont

Re: Unionmount. Basic details

2009-04-09 Thread Carl Fredrik Hammar
Hi, On Wed, Apr 08, 2009 at 07:10:26PM +0200, olafbuddenha...@gmx.net wrote: > On Mon, Apr 06, 2009 at 06:58:23PM +0200, Carl Fredrik Hammar wrote: > > On Mon, Apr 06, 2009 at 04:26:25PM +0300, Sergiu Ivanov wrote: > > > So the only difference between unionmount and unionfs is the setup and > > t

Re: Unionmount. Basic details

2009-04-09 Thread Carl Fredrik Hammar
Hi, > > unionmount is expected to merge the filesystem on which it sits with > > the filesystem exposed by the translator it is asked to start in > > unionmount mode (further referred to as ``the Translator''). > > Nah, I think there are various clearer ways to name it: e.g. "target > translator"

Re: Unionmount. Basic details

2009-04-09 Thread Carl Fredrik Hammar
Hi! On Tue, Apr 07, 2009 at 12:20:40AM +0300, Sergiu Ivanov wrote: > > Then it might be possible to implement the shadow node in unionmount > > and pass it to unionfs. Just wrap a file descriptor around the port > > and let unionfs inherit it, to make unionfs use it pass `/dev/fd/$FD' > > as an a

Re: Unionmount. Basic details

2009-04-09 Thread olafBuddenhagen
Hi, On Mon, Apr 06, 2009 at 06:58:23PM +0200, Carl Fredrik Hammar wrote: > On Mon, Apr 06, 2009 at 04:26:25PM +0300, Sergiu Ivanov wrote: > So the only difference between unionmount and unionfs is the setup and > the shadow node, right? Well, not quite. unionmount needs additional functionality

Re: Unionmount. Basic details

2009-04-09 Thread olafBuddenhagen
Hi, On Mon, Apr 06, 2009 at 04:26:25PM +0300, Sergiu Ivanov wrote: > OTOH, implementing unionmount as extensions to translator libraries > would mean faster operation and automatic inclusion of the > functionality in *every* existing translators, but modifying something > would require more effor

Re: Unionmount. Basic details

2009-04-08 Thread Sergiu Ivanov
Hello, Carl Fredrik Hammar writes: > On Mon, Apr 06, 2009 at 04:26:25PM +0300, Sergiu Ivanov wrote: >> I would like to start a discussion about some basic details >> implementation of the unionmount project. >> >> Firstly, the implementation was suggested in two ways: as a stand-alone >> translat

Re: Unionmount. Basic details

2009-04-06 Thread Carl Fredrik Hammar
Hi, On Mon, Apr 06, 2009 at 04:26:25PM +0300, Sergiu Ivanov wrote: > Hello, > > I would like to start a discussion about some basic details > implementation of the unionmount project. > > Firstly, the implementation was suggested in two ways: as a stand-alone > translator and as a series of exten

Unionmount. Basic details

2009-04-06 Thread Sergiu Ivanov
Hello, I would like to start a discussion about some basic details implementation of the unionmount project. Firstly, the implementation was suggested in two ways: as a stand-alone translator and as a series of extensions to lib{net,disk}fs libraries. These two approaches have there advantages an