Re: named streams, extended attributes, and posix

2001-01-29 Thread Mo McKinlay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today, Michael Rothwell ([EMAIL PROTECTED]) wrote: > So, openstream() is probably the most painless way to get named streams > support into Linux in the immediate future. Openstream() will have to > fail on filesystems that do not support strea

Re: named streams, extended attributes, and posix

2001-01-29 Thread Michael Rothwell
Mo McKinlay wrote: > I would too, but POSIX won't let us unless we start enforcing side-effect > rules for all filesystems. Hence why I came up with openstream() :) So, openstream() is probably the most painless way to get named streams support into Linux in the immediate future. Openstream() wil

RE: named streams, extended attributes, and posix

2001-01-25 Thread Steven N. Hirsch
On Thu, 25 Jan 2001, Leif Sawyer wrote: > [EMAIL PROTECTED] [[EMAIL PROTECTED]] wrote: > > Here's an idea: streams/etc are reached by appending > > "/.../xxx" or some such to paths, thus: > > for streamname on /dir/file, we have "/dir/file/.../streamname" > > for a directory /dir/dir, we get

RE: named streams, extended attributes, and posix

2001-01-25 Thread Leif Sawyer
[EMAIL PROTECTED] [[EMAIL PROTECTED]] wrote: > Here's an idea: streams/etc are reached by appending > "/.../xxx" or some such to paths, thus: > for streamname on /dir/file, we have "/dir/file/.../streamname" > for a directory /dir/dir, we get /dir/dir/.../streamname" >-- "..." is a speci

Re: named streams, extended attributes, and posix

2001-01-25 Thread alex
On Thu, Jan 25, 2001 at 02:07:11PM -0700, Thunder from the hill wrote: > Daniel Phillips wrote: > > For some reason totally beyond my comprehension // inside a file name is > > taken to be the same as /, but if it wasn't it could be the stream > > separator. *sigh* > It seems that you mix up forw

Re: named streams, extended attributes, and posix

2001-01-25 Thread Thunder from the hill
Daniel Phillips wrote: > > Michael Rothwell wrote: > > Unfortunately, unix allows everything but "/" in filenames. This was > > probably a mistake, as it makes it nearly impossible to augment the > > namespace, but it is the reality. > > For some reason totally beyond my comprehension // inside

Re: named streams, extended attributes, and posix

2001-01-25 Thread Daniel Phillips
Michael Rothwell wrote: > Unfortunately, unix allows everything but "/" in filenames. This was > probably a mistake, as it makes it nearly impossible to augment the > namespace, but it is the reality. For some reason totally beyond my comprehension // inside a file name is taken to be the same as

Re: named streams, extended attributes, and posix

2001-01-21 Thread Michael Rothwell
quot; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 11:27 PM Subject: Re: named streams, extended attributes, and posix > Michael Rothwell writes: > > ... > >> Today, Michael Rothwell ([EMAIL PROTECTED]) wrote: > > >>> The fil

Re: named streams, extended attributes, and posix

2001-01-20 Thread Albert D. Cahalan
Michael Rothwell writes: > ... >> Today, Michael Rothwell ([EMAIL PROTECTED]) wrote: >>> The filesystem, when registering that it supports the "named streams" >>> namespace, could specify its preferred delimiter to the VFS as well. >>> Ext4 could use /directory/file/stream, and NTFS could use >>>

Re: named streams, extended attributes, and posix

2001-01-19 Thread Mo McKinlay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today, Michael Rothwell ([EMAIL PROTECTED]) wrote: > Mo McKinlay wrote: > > > Nono, that's not what I mean - each of the filesystems fails if it > > doesn't support what you're trying to do, that's given - but having a > > different delimet

Re: named streams, extended attributes, and posix

2001-01-19 Thread Michael Rothwell
Mo McKinlay wrote: > Nono, that's not what I mean - each of the filesystems fails if it > doesn't support what you're trying to do, that's given - but having a > different delimeter registered by the filesystem (and hence the > possibility of every single filesystem using a different delimeter) b

Re: named streams, extended attributes, and posix

2001-01-19 Thread Mo McKinlay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today, Michael Rothwell ([EMAIL PROTECTED]) wrote: > Oh, undoubtedly. But NTFS already disallows several characters in valid > filenames. This also violates the "consistent abstract interface." But > it's reality. Nono, that's not what I mean

Re: named streams, extended attributes, and posix

2001-01-19 Thread Michael Rothwell
Mo McKinlay wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Today, Michael Rothwell ([EMAIL PROTECTED]) wrote: > > > The filesystem, when registering that it supports the "named streams" > > namespace, could specify its preferred delimiter to the VFS as well. > > Ext4 could

Re: named streams, extended attributes, and posix

2001-01-19 Thread Mo McKinlay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today, Michael Rothwell ([EMAIL PROTECTED]) wrote: > The filesystem, when registering that it supports the "named streams" > namespace, could specify its preferred delimiter to the VFS as well. > Ext4 could use /directory/file/stream, and NTFS

Re: named streams, extended attributes, and posix

2001-01-19 Thread Michael Rothwell
Mo McKinlay wrote: > (Take symbolic linking, for example - if you ln -s on VFAT, you get > 'operation not permitted' - named stream/EA operations on a filesystem > that doesn't support them should return the same, IMHO). And they would, if the chosen namespace was not supported. > Also, I don't

Re: named streams, extended attributes, and posix

2001-01-19 Thread Mo McKinlay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today, Michael Rothwell ([EMAIL PROTECTED]) wrote: > Thanks. I think having the option of the namespace augmentation would be > useful, in terms of supporting existing filesystems. On NTFS, ":" is not > a legal filename character anyway. The na

Re: named streams, extended attributes, and posix

2001-01-19 Thread Michael Rothwell
Mo McKinlay wrote: > openstream(file, stream, flags) > > Where 'file' should be an fd (although i'm sure the VFS gods will think of > plenty of reasons why this is a bad idea, at which point I'll > conventiently change my mind ;). Stream is simply the name of the stream, > flags are as with open

Re: named streams, extended attributes, and posix

2001-01-19 Thread Mo McKinlay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Well, EAs are accessed via a special API. The paper also covers that. > Streams, however, are by nature accessed as files; this is what makes > them not EAs. EAs are set and retrieved atomically. Streams can be used > with open(), seek(), r

Re: named streams, extended attributes, and posix

2001-01-19 Thread Michael Rothwell
Mo McKinlay wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Today, Michael Rothwell ([EMAIL PROTECTED]) wrote: > > > Unfortunately, unix allows everything but "/" in filenames. This was > > probably a mistake, as it makes it nearly impossible to augment the > > namespace, b

Re: named streams, extended attributes, and posix

2001-01-19 Thread Mo McKinlay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today, Michael Rothwell ([EMAIL PROTECTED]) wrote: > Unfortunately, unix allows everything but "/" in filenames. This was > probably a mistake, as it makes it nearly impossible to augment the > namespace, but it is the reality. > Did you rea

Re: named streams, extended attributes, and posix

2001-01-18 Thread Michael Rothwell
y" <[EMAIL PROTECTED]> To: "Peter Samuelson" <[EMAIL PROTECTED]> Cc: "Mo McKinlay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 1:30 PM Subject: Re: named streams, extended attributes, and posix > -BEGIN PGP SIGN

Re: named streams, extended attributes, and posix

2001-01-18 Thread Mo McKinlay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yesterday, Peter Samuelson ([EMAIL PROTECTED]) wrote: > Yeah, I agree, 'file/stream' is lousy syntax as well. If it weren't > for the possibility of having streams on directories, it would almost > be acceptible. I still don't know which (':'

Re: named streams, extended attributes, and posix

2001-01-17 Thread Peter Samuelson
[Mo McKinlay] > We went through this last time around. What happens to directories > with streams? Yeah, I agree, 'file/stream' is lousy syntax as well. If it weren't for the possibility of having streams on directories, it would almost be acceptible. I still don't know which (':' or '/') is t

Re: named streams, extended attributes, and posix

2001-01-17 Thread Mo McKinlay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yesterday, Peter Samuelson ([EMAIL PROTECTED]) wrote: > > [Michael Rothwell] > > It seems that if you move a file with a colon -- "file:colon" -- in > > the name from Ext2 to "StreamFS," you would end up with a file named > > "file" with a

Re: named streams, extended attributes, and posix

2001-01-16 Thread Peter Samuelson
[Peter Samuelson] > > What if you copy both 'filename' and 'filename:ext' onto the same > > fs? Do they get combined into one file? [Michael Rothwell] > ON Ext2, you get two files. On NTFS, you get one file, and a stream > on that file. Yeah. I think that's broken. It gets worse when you s

Re: named streams, extended attributes, and posix

2001-01-16 Thread Michael Rothwell
> What if you copy both 'filename' and 'filename:ext' onto the same fs? > Do they get combined into one file? ON Ext2, you get two files. On NTFS, you get one file, and a stream on that file. > Any semantics by which 'filename:stream' and 'filename' refer to the > same file would be b0rken. If

Re: named streams, extended attributes, and posix

2001-01-16 Thread Peter Samuelson
[Michael Rothwell] > It seems that if you move a file with a colon -- "file:colon" -- in > the name from Ext2 to "StreamFS," you would end up with a file named > "file" with a stream named "colon". When copying back, you would get > "file:colon" back. What if you copy both 'filename' and 'filena

Re: named streams, extended attributes, and posix

2001-01-16 Thread Michael Rothwell
"James H. Cloos Jr." wrote: > > Michael> Please read and comment! :) > > There should be some discussion on what to do about filenames which > contain colons in such a setup. Moving a file w/ a colon from a fs > which does not support named streams to one which does should DTRT; > exactly what

Re: named streams, extended attributes, and posix

2001-01-11 Thread James H. Cloos Jr.
Michael> Please read and comment! :) There should be some discussion on what to do about filenames which contain colons in such a setup. Moving a file w/ a colon from a fs which does not support named streams to one which does should DTRT; exactly what TRT is should be discussed. -JimC -- Jame

Re: named streams, extended attributes, and posix

2001-01-11 Thread Michael Rothwell
CORRECTION: > existing, widely-deployed filesystems (e.g., NFS, XFS, BeFS, HFS, etc.), NTFS---^ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org