Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

363
Views
why can't we store file names directly in inodes

I don't really understand why in UNIX systems they don't store file names directly in the inodes but use a mapping system .. is this only because the size of the inode is defined and can't be changed so in case of long file names we couldn't store them? Or maybe that's in case we change the file name we don't have to do it one more time in the inode ?

Please tell me if I'm wrong or if there are other explanations . Thanks in advance

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Why do not include file name directly in inode, here is the reasons that come to my mind:

  1. a file may have multiple names, a.k.a. hard link
  2. to support long file name, say at least 255 bytes (on most POSIX system), the inode will be much large, and because usually file names are not so long, so many of these space are wasted.
  3. if in the future we want/need to support longer file name, we need to change the structure of inode, and this could cause backward compatibile problem.
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!