OSDN Git Service

Add support for the DIR_NLINK feature.
authorAndreas Dilger <adilger@sun.com>
Sat, 2 Feb 2008 08:25:03 +0000 (01:25 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 15 Mar 2008 05:39:19 +0000 (01:39 -0400)
commita7c9cb7d0dc464eda26958595b728a6c3a4cacbc
tree3a71feaadfd00d7b8f4cdfa71631dd05692600ea
parent60bbd1af533daf8c726d6e5e4f17b293494bd939
Add support for the DIR_NLINK feature.

This patch includes the changes required to e2fsck to understand the
nlink count changes made in the kernel.

In e2fsck pass 4, when we fetch the actual link count, if it is
exceeds 65,000 we set the link count to 1.  We silently fix the
situation where the nlink count of the directory is 1, and there are
fewer than 65,000 subdirectories, since since that can happen
naturally.

Patch originally from CFS, significantly rewritten by Theodore Ts'o.

Signed-off-by: Andreas Dilger <adilger@clusterfs.com>
Signed-off-by: Kalpak Shah <kalpak@clusterfs.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/pass4.c
lib/ext2fs/ext2_fs.h
lib/ext2fs/ext2fs.h