Re: determining an iso from vnd

"George Georgalis" <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
On Thu, Feb 01, 2007 at 10:33:22PM -0500, James K. Lowden wrote:
>George Georgalis wrote:
>> shouldn't we be able to use stat to look up
>> the file attributes, like name and path, from the inode?
>
>An inode, like a network node, is a number.  Just as /etc/hosts and DNS
>map names to network addresses, just as /etc/services maps names to ports,
>so too does a filesystem directory map names to inodes.  The number
>doesn't know its name, and, as you know, can have many names.  
>
>That's not to say it can't be done, of course; that's just to say it's a
>singly-linked list.  To look up names by number, you'd need a
>number-to-name linked list.  I don't know of any OS that maintains such a
>list. 

right... all I have to do is keep my inodes ptr in a
zone file!

 geo@fuji:/Users/geo/ dnsq ptr 12345.hostname.inode a.ns.galis.org | grep answer
answer: 12345.hostname.inode 333 PTR \057tmp\057file.txt

but I think it will be easier to just note the iso
whenever I mount a vnode. :)

is there any way to mount an iso file with the auto
mechanism in fstab?

>Apple has something similar: if you create an "alias" in the OS X Finder
>and then rename the target with mv(1), the alias continues to work.  (The
>alias is not a symlink.  file(1) says only that it's empty.)  Cf.
>http://www.kernelthread.com/mac/osx/arch_fs.html and look for "Aliases". 

Interesting link, have sorta wondered how OS X would
find broken aliases.... thanks.

// George

-- 
George Georgalis, systems architect, administrator <IXOYE><
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.