Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

(tye)Re: Retriving Filename from Filehandle

by tye (Sage)
on Dec 18, 2001 at 22:47 UTC ( [id://132905]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Retriving Filename from Filehandle
in thread Retriving Filename from Filehandle

Given a file name, it is nearly trivial to find the i-node and other information (that is part of the purpose of a file name, after all). Given an i-node number (and device number), finding the file name(s) requires searching the entire file system (once you've determined which file system from the device number). That is, the mapping is one-way.

And an i-node can have no file name or can have hundreds of file names.

Why? Because the mapping needs to be efficient in the one direction but the "need" to go the other direction doesn't justify the extra overhead and complexity so most file systems don't implement the other direction.

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re: Retriving Filename from Filehandle

Replies are listed 'Best First'.
Re^2: Retriving Filename from Filehandle
by freonpsandoz (Beadle) on Jan 28, 2019 at 02:01 UTC

    i-node? Because Unix is the only operating system in the world?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://132905]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-24 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found