Eric Sandeen wrote:
> So this trips up on things like sockets, fifos, and block & char nodes.

Just to demonstrate; doing this on ext4:

mknod mnt/block b 1 1
mknod mnt/char c 1 1
mknod mnt/fifo p
mksock mnt/sock

mkdir -p
mnt/verylongdir12345678901234567890/verylongdir12345678901234567890/verylongdir12345678901234567890
ln -s
mnt/verylongdir12345678901234567890/verylongdir12345678901234567890/verylongdir12345678901234567890
mnt/longlink

yields an unhappy fsck w/ e2fsprogs-interim:

e2fsck 1.40.6 (09-Feb-2008)
Pass 1: Checking inodes, blocks, and sizes
Inode 12 has EXTENT_FL set, but is not in extents format
Fix? no

Inode 13 has EXTENT_FL set, but is not in extents format
Fix? no

Inode 14 has EXTENT_FL set, but is not in extents format
Fix? no

Inode 15 has EXTENT_FL set, but is not in extents format
Fix? no

Inode 17 has EXTENT_FL set, but is not in extents format
Fix? no

Pass 2: Checking directory structure
Inode 12 (/block) is an illegal block device.
Clear? no

Inode 13 (/char) is an illegal character device.
Clear? no

Inode 14 (/fifo) is an illegal FIFO.
Clear? no

Inode 15 (/sock) is an illegal socket.
Clear? no

Symlink /longlink (inode #17) is invalid.
Clear? no

Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

-Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to