On Thu, May 24, 2001 at 02:23:27AM +0200, Edgar Toernig wrote: > Daniel Phillips wrote: > > > > It's going to be marked 'd', it's a directory, not a file. > > > > > > Aha. So you lose the S_ISCHR/BLK attribute. > > > > Readdir fills in a directory type, so ls sees it as a directory and does > > the right thing. On the other hand, we know we're on a device > > filesystem so we will next open the name as a regular file, and find > > ISCHR or ISBLK: good. > > ??? The kernel may know it, but the app? Or do you really want to > give different stat data on stat(2) and fstat(2)? These flags are > currently used by archive/backup prgs. It's a hint that these files > are not regular files and shouldn't be opened for reading. > Having a 'd' would mean that they would really try to enter the > directory and save it's contents. Don't know what happens in this > case to your "special" files ;-) IMHO the CHR/BLK is not needed. Think of /proc. In the future, the backup tools will be told to ignore /dev, that's all. -- marko - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to [EMAIL PROTECTED]
- Re: Why side-effects on open(2) are evil. (was Re: [RFD ... Daniel Phillips
- Re: Why side-effects on open(2) are evil. (was Re: ... Oliver Xymoron
- Re: Why side-effects on open(2) are evil. (was Re: ... Daniel Phillips
- Re: Why side-effects on open(2) are evil. (was Re: ... Oliver Xymoron
- Re: Why side-effects on open(2) are evil. (was Re: ... Daniel Phillips
- Re: Why side-effects on open(2) are evil. (was Re: ... Edgar Toernig
- Re: Why side-effects on open(2) are evil. (was Re: ... Alexander Viro
- Re: Why side-effects on open(2) are evil. (was Re: ... Daniel Phillips
- Re: Why side-effects on open(2) are evil. (was Re: ... Oliver Xymoron
- Re: Why side-effects on open(2) are evil. (was Re: ... Edgar Toernig
- Re: Why side-effects on open(2) are evil. (was Re: ... Marko Kreen
- Re: Why side-effects on open(2) are evil. (was Re: ... Oliver Xymoron
- CHR/BLK needed? was: Re: Why side-effects on open... Marko Kreen
- Re: Why side-effects on open(2) are evil. (was Re: ... Albert D. Cahalan
- Re: Why side-effects on open(2) are evil. (was Re: ... Daniel Phillips
- Re: Why side-effects on open(2) are evil. (was Re: ... Daniel Phillips
- Re: Why side-effects on open(2) are evil. (was Re: ... Edgar Toernig
- Re: Why side-effects on open(2) are evil. (was Re: ... Alexander Viro
- Re: Why side-effects on open(2) are evil. (was Re: ... Daniel Phillips
- Re: Why side-effects on open(2) are evil. (was Re: ... Daniel Phillips
- Re: Why side-effects on open(2) are evil. (was Re: ... Edgar Toernig
