home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.programmer:4258 comp.unix.internals:1682 comp.sys.hp:9210
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!swrinde!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!fcom.cc.utah.edu!gateway.univel.com!gateway.novell.com!thisbe!terry
- From: terry@thisbe.npd.Novell.COM (Terry Lambert)
- Newsgroups: comp.unix.programmer,comp.unix.internals,comp.sys.hp
- Subject: Re: inode to filename
- Message-ID: <1992Aug12.181707.23506@gateway.novell.com>
- Date: 12 Aug 92 18:17:07 GMT
- References: <1992Aug06.172513.4063@CS.ORST.EDU> <1992Aug07.131925.10902@bnr.uk> <1992Aug11.164753.13726@ssd.ukpoit.co.uk> <1992Aug12.144032.6417@bwdls61.bnr.ca>
- Sender: terry@thisbe (Terry Lambert)
- Organization: Novell NPD -- Sandy, UT
- Lines: 46
- Nntp-Posting-Host: thisbe.eng.sandy.novell.com
-
- In article <1992Aug12.144032.6417@bwdls61.bnr.ca>, mleech@bnr.ca (Marcus Leech) writes:
- |> In article <1992Aug11.164753.13726@ssd.ukpoit.co.uk>, alan@ssd.ukpoit.co.uk (Alan Barclay) writes:
- |> |> I don't see it as a weakness, if there was a one to one relationship
- |> |>
- |> |> [MS-DOS references delated].
- |> |> I don't see the need to refer to a file from a inode number anyway,
- |> |> the most common you can get a inode number is though stat or fstat,
- |> |> and presumably you knew the filename in the past.
- |> A common reason for wanting to do this is to determine what's going on in
- |> your system. Which processes have which files open, etc. This *is*
- |> useful, and UNIX has traditionally (and continues to be) weak in the areas
- |> of effective system management mechanisms.
- |>
- |> The traditional argument for not storing such information in the kernel
- |> has been "too much space". Memory is now quite cheap, and with clever
- |> data structures, you don't pay that much for keeping filename<--->process
- |> mappings around. If, for example, you recognize that there is a very
- |> high degree of shared name space, you can take advantage of that fact to
- |> dramatically reduce the storage requirements.
- |>
- |> In this *particular area*, VMS is better.
-
- Then again, VMS is extent based, and uses a single allocation pointer. This
- means you not only serialize on the use of this pointer, multiple writers tend
- to interleave extents, pretty much killing any benefits from extenting in the
- first place.
-
- VMS also has the ability to support hard links, which once again introduces the
- parent/ancestor identification problem... which equivalent path to the file (and
- which name for the file) did the user use when it was opened?
-
- VMS also has a system-wide limit of 1024 channels, which aren't only used by the
- file system.
-
- VMS also does not have caching, per se.
-
- The traditional argument for not storing the information in the kernel has been
- reverse lookup overhead.
-
- Terry Lambert
- terry_lambert@gateway.novell.com
- terry@icarus.weber.edu
-
- ---
- Disclaimer: Any opinions in this posting are my own and not those of
- my present or previous employers.
-