login
Header Space

 
 

Re: [RFC PATCH 0/5] Shadow directories

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <jaroslav.sykora@...>
Cc: Jan Engelhardt <jengelh@...>, <linux-kernel@...>, <linux-fsdevel@...>
Date: Thursday, October 18, 2007 - 4:37 pm

Jaroslav Sykora wrote:

If I understand your problem, you wish to treat an archive file as if it 
was a directory.  Thus, in the ideal situation, you could do the following:

	cat hello.zip/hello.c
	gcc hello.zip/hello.c -o hello
	etc..


Rather than complicate matters with a second tree, use FUSE with an 
explicit directory.  For example, ~/expand could be your shadow, thus to 
compile hello.c from ~/hello.zip:

	gcc ~/expand/hello.zip^/hello.c -o hello


I think no kernel change would be required.

I'm not keen on the caret.  One of the early claims made in 
http://lwn.net/Articles/100148/ is:

The claim is wrong.  UNIX systems have traditionally allowed the 
superuser to create hard links to directories.  See link(2) for 2.10BSD 
<http://www.freebsd.org/cgi/man.cgi?query=link&sektion=2&manpath=2.10+BSD>.  
Having got that wrong throws doubt on the argument; perhaps a path can 
simultaneously be a file and a directory.
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC PATCH 0/5] Shadow directories, David Newall, (Thu Oct 18, 4:37 pm)
Re: [RFC PATCH 0/5] Shadow directories, Al Viro, (Thu Oct 18, 4:47 pm)
Re: [RFC PATCH 0/5] Shadow directories, David Newall, (Thu Oct 18, 10:57 pm)
Re: [RFC PATCH 0/5] Shadow directories, Al Viro, (Fri Oct 19, 1:37 am)
speck-geostationary