Imported reiserfsprogs-3.6.19
This commit is contained in:
1 parent
3078c83c48
commit
0ed773997f
34 files changed
+724
-560
No files matched your search
@@ -172,7 +172,8 @@ int wrong_st_blocks (struct key * key, __u32 * blocks, __u32 sd_blocks, __u16 mo
|
||||
int ret = 0;
|
||||
|
||||
if (S_ISREG (mode) || S_ISLNK (mode) || S_ISDIR (mode)) {
|
||||
if (*blocks != sd_blocks) {
|
||||
if ((!S_ISLNK(mode) && *blocks != sd_blocks) ||
|
||||
(S_ISLNK(mode) && *blocks != sd_blocks && (ROUND_UP(*blocks) != sd_blocks))) {
|
||||
fsck_log ("vpf-10680: The %s %K has the wrong block count in the StatData "
|
||||
"(%u)%s(%u)\n", S_ISDIR (mode) ? "directory" : S_ISREG (mode) ? "file" : "link", key, sd_blocks,
|
||||
fsck_mode(fs) == FSCK_CHECK ? ", should be " : " - corrected to ", *blocks);
|
||||
|
||||
Reference in new issue
Block a user