[lkml]   [2002]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [reiserfs-dev] Re: [PATCH] sparc32: wrong type of nlink_t
Date said:
> > The patch will probably cause reiserfs problems as well, we've
> > already got people with > 32767 links on disk, going to a lower
> > number will confuse things.
> And that means you already have reiserfs partitions that cannot be
> used on other Linux platforms. That's pretty bad.

Surely a file system with > 32Ki links can be _used_ on sparc, you just
can't return a correct value in st_nlink. For directories, you could
perhaps set st_nlink to '1', which many things will interpret as
"don't know". For files, I'm not sure -- but even just setting it to
min(32767, real_nlink) would suffice, surely? It's inaccurate but it's
better than the idea that the file system just cannot be mounted.

Is there a requirement to stop allowing hard links (or subdirectories)
to be made when nlink reaches the maximum representable to user space?
Obviously you have to do it if you're keeping an nlink count on the
medium and you'd overflow _that_, but should we return -EMLINK even if we
could represent the new hard link on the file system?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.369 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site