disk problem(s)

Bernt Hansson bah at bananmonarki.se
Sat Jan 14 09:13:03 UTC 2012


2012-01-14 09:22, Polytropon skrev:
> How many subdirectories are there?

ls | wc -l
    32765

>
> Could you, for example, try removing one and then
> creating a new one (assumption: success), followed
> by another try to create one (assumption: fail)?


That is a nono

I'll have to pop in another disk.

>
>
> Detail:
>
> The mkdir() function can be found (for UFS2) in the
> file /usr/src/sys/gnu/fs/ext2fs/ext2_vnops.c at
> line 1111 (sources of 8.2-STABLE i386 here). If
> you examine what mkdir() does, you'll see that
> the "too many links" is true when LINK_MAX is
> exceeded. Per /usr/src/sys/gnu/fs/ext2fs/ext2_fs.h
> we can determine that
>
> 	#define EXT2_LINK_MAX           32000
>
> is defined. Can you check if 32000 is the amount
> of directories created?


More information about the freebsd-questions mailing list