Re: [2.6] smbfs & "du" illness

From: Linus Torvalds
Date: Sat Sep 25 2004 - 13:13:08 EST




On Sat, 25 Sep 2004, Linus Torvalds wrote:
>
> Methinks you've been looking too much at what MS does over the wire, and
> that has made you think that it makes total sense to send random numbers
> over the wire. Maybe so - maybe it's how you have to think if you make a
> samba server. But if so, just _say_ so, instead of making arguments that
> make no sense.

Btw, if you want to send bytes instead of blocks, I don't care. The Linux
client can easily do

blocks = bytes >> 9;

and I'll be perfectly happy. But if the "bytes" count you send has no
actual real-life meaning (ie it didn't actually come from the underlying
filesystem at all), then don't bother. The client might as well do

blocks = (filesize + 511) >> 9;

if that's what the server is (badly) mangling.

Linus


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/