Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!asstdc.scgt.oz.au!metro!metro!news.nsw.CSIRO.AU!mel.dit.csiro.au!munnari.OZ.AU!spool.mu.edu!uwm.edu!math.ohio-state.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!newsfeed.internetmci.com!iol!tank.news.pipex.net!pipex!lade.news.pipex.net!pipex!news00.sunet.se!sunic!news99.sunet.se!cph-1.news.DK.net!dkuug!dknet!ic.dk!jblhome.ping.dk!usenet From: jacob@jblhome.ping.dk (Jacob Lorensen) Newsgroups: comp.os.linux.development.system,comp.unix.bsd.freebsd.misc Subject: Re: Ideal filesystem Date: 27 Mar 1996 09:14:49 +0100 Organization: Jacobs home computer. Lines: 55 Sender: jacob@pippin.jblhome.ping.dk Message-ID: <m1spevlzpi.fsf@pippin.jblhome.ping.dk> References: <4hptj4$cf4@cville-srv.wam.umd.edu> <3140C968.20699696@netcom.com> <4isubc$ri9@floyd.sw.oz.au> <4itvde$492@narses.hrz.tu-chemnitz.de> <Dos6H1.ED7@white.schulung.netuse.de> NNTP-Posting-Host: pippin.jblhome.ping.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit In-reply-to: kris@schulung.netuse.de's message of Sun, 24 Mar 1996 16:43:49 GMT X-Newsreader: Gnus v5.1 Xref: euryale.cc.adfa.oz.au comp.os.linux.development.system:20132 comp.unix.bsd.freebsd.misc:16126 -----BEGIN PGP SIGNED MESSAGE----- >>>>> "kris" == =?ISO-8859-1?Q?Kristian K=F6hntopp?= <kris@schulung.netuse.de> writes: kris> fachat@physik.tu-chemnitz.de (Andre Fachat) writes: >> The only thing we have to do is - create a new file flag to >> indicate 'hidden directory executable' kris> To match with the UNIX approach, this flag has to be stored kris> in the directory entry, not in the i-node. Otherwise a call Eh? File attributes are certainly stored in the inode. A directory is only a map from names to inode numbers. In fact, Unix file systems can be viewed as containing only files and inodes. The hierarchical directory abstraction and file name abstraction is put ``on top'' of that. kris> like readdir() would have to read the i-nodes of all files kris> it is listing, which is very slow. So what is wrong with kris> extensions? ls stat()s all the files if it needs information on whether it is a file or directory, if it has executable perimissions, who owns it, etc. etc. - From the readdir() man page: struct dirent *readdir(DIR *dir); - From /usr/include/linux/dirent.h struct dirent { long d_ino; off_t d_off; unsigned short d_reclen; char d_name[NAME_MAX+1]; }; No file permission bits stored here... Jacob. -----BEGIN PGP SIGNATURE----- Version: 2.6.2i iQB1AwUBMVj46M6NlpPllvC1AQE9AQMArCxCvU4xIdyhcm7yyribnorA6mTqlmAr YFBYNcBn+f2sEg6a+S3iIEg/YrSPknp52aiJNElLZwdO8iphwl56mrbb+JACkd1M XmkzTf7m97/LJ4qxT1LyM33ApYU379dN =UcES -----END PGP SIGNATURE----- -- PGP Key fingerprint = 1E 87 26 46 74 36 DC 4A 72 3B 66 78 C5 AD 9E 71 PGP Public key available at the keyservers.