Re: 2.4.0-test10 truncate() change broke `dd'

From: Mikael Pettersson (mikpe@csd.uu.se)
Date: Thu Nov 16 2000 - 06:32:45 EST


On Thu, 16 Nov 2000, Alexander Viro wrote:

> And what kind of meaning would you assign to truncate on floppy?

On a block or char device, truncate == lseek seems reasonable.

My guess is that dd uses ftruncate because that's correct for
regular files and has happened to also work (as an alias for
lseek) for devices.

> Use conv=notrunc.

I didn't know about notrunc. Yet another GNU invention?

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



This archive was generated by hypermail 2b29 : Thu Nov 23 2000 - 21:00:10 EST