[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Hvordan pokker angiver man inode number i stedet for fil navn



Jon Bendtsen wrote:
Hej

Jeg har nogle lister med inode numbers hvor indholdet af filerne er ens.

Dem vil jeg godt hardlinke sammen, men problemet er at ln kræver fil  navn.

Derfor kunne jeg rigtig godt tænke mig et hurtigt væktøj til at finde navnet
ud fra inode nummeret.


find -inum tager for lang tid. Burde det ikke bare være at slå op i filsystemets
inode tabel og finde navnet?

Navnene står i directories, ikke i inode tabellerne. Der kan jo være flere, hvis de allerede har flere hardlinks.

Hvordan er tabellerne med de ens filer lavet?

Og hvorfor er der gemt inode numrene på filerne og ikke navnene?

Der er nok ikke nogen nem måde at gå fra inode til filnavn,
du skal nok lave noget "ls -i" og så søge i outputtet. Der
kan jo være flere hits, hvis filerne er hardlinkede i forvejen.

Mogens


-- Mogens Kjaer, Carlsberg A/S, Computer Department Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark Phone: +45 33 27 53 25, Fax: +45 33 27 47 08 Email: sslug@sslug Homepage: http://www.crc.dk


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-05-01, 02:02 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *