Skip to contentSkip to conversation

minix fix

PATCH In review [email protected] 2 participants 3 messages Aug 20, 2004 – Aug 30, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 minix fix

In 2.5.18 some minix-specific stuff was moved to the minix subdirectory where it belonged. However, a typo crept in. A few people have complained, but so far not sufficiently loudly.

The bug is of a type that automated tools might discover:
a value res is computed, but not used.

Andries

Signed-off-by Andries Brouwer
fs/minix/itree_common.c +1 -1
diff -uprN -X /linux/dontdiff a/fs/minixdiff -uprN -X /linux/dontdiff a/fs/minix/itree_common.c b/fs/minix/itree_common.c
@@ -358,5 +358,5 @@ static inline unsigned nblocks(loff_t si
 		res += blocks;
 		direct = 1;
 	}
-	return blocks;
+	return res;
 }
#1 lore raw

Re: [PATCH] minix fix - ? does this fix "du" bug ?!?

Will this patch fix the fact that 'du' is broken on minix, as a few of us have been reporting? (Assume yes: Yippeedoo! Thanks!) -Tom

Quoted 22 lines

In 2.5.18 some minix-specific stuff was moved to the minix subdirectory where it belonged. However, a typo crept in. A few people have complained, but so far not sufficiently loudly.

The bug is of a type that automated tools might discover:
a value res is computed, but not used.

Andries

Signed-off-by Andries Brouwer

diff -uprN -X /linux/dontdiff a/fs/minixdiff -uprN -X /linux/dontdiff a/fs/minix/itree_common.c b/fs/minix/itree_common.c

fs/minix/itree_common.c +1 -2
@@ -358,5 +358,5 @@ static inline unsigned nblocks(loff_t si
 		res += blocks;
 		direct = 1;
 	}
-	return blocks;
+	return res;
 }
-
#2 lore raw

Re: [PATCH] minix fix - ? does this fix "du" bug ?!?

Quoted 2 lines · Tom Oehser

Will this patch fix the fact that 'du' is broken on minix, as a few of us have been reporting? (Assume yes: Yippeedoo! Thanks!) -Tom

Yes, I think so.
Andries