Hi,
Ethan Azariah wrote on Sat, Jun 28, 2025 at 04:26:05PM +0100:
> On Sat, Jun 28, 2025, at 4:03 PM, Crystal Kolipe wrote:
>> On Sat, Jun 28, 2025 at 03:53:37PM +0100, Ethan Azariah wrote:
>>> can ffs run out of inodes as ext2 can?
>> Yes.
Specifically, https://man.openbsd.org/newfs.8#i .
>> But with default settings and typical use, it probably won't happen.
Correct, that's called "sane defaults".
If, for some reason, you have a file system with an extremely small
average file size (on the order of a few kilobytes or below), it can
happen, though, and that's what the -i option is for.
> thanks. i might have misunderstood inodes role in hard linking.
> when you make a hard link, does it use a new inode?
$ ls -1i /usr/bin/{man,mandoc,apropos} /usr/sbin/makewhatis
26587 /usr/bin/apropos
26587 /usr/bin/man
26587 /usr/bin/mandoc
26587 /usr/sbin/makewhatis
Looks like several directory entries point to the same inode:
https://man.openbsd.org/ls.1#i
This does consume some space because the directories need to store
the additional file names and file name - inode associations,
but it does not consume additional inodes.
Yours,
Ingo
No comments:
Post a Comment