public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 'holey files' not holey enough.
@ 2000-11-29 13:00 Adam
  2000-11-29 13:07 ` Tigran Aivazian
  2000-11-29 22:36 ` Marc Mutz
  0 siblings, 2 replies; 12+ messages in thread
From: Adam @ 2000-11-29 13:00 UTC (permalink / raw)
  To: linux-kernel


Is this feature or bug?

First a test on 'stable' 2.2.x kernel:

	eax /tmp % uname -a
	Linux eax 2.2.17pre15 #1 Sat Aug 5 14:31:19 EDT 2000 i586 unknown

	eax /tmp % dd if=/dev/zero of=holed.file bs=1000 seek=5000 count=1000
	1000+0 records in
	1000+0 records out

	eax /tmp % ls -l holed.file 
	-rw-rw-r--    1 adam     adam      6000000 Nov 29 08:57 holed.file

	eax /tmp % du -sh holed.file 
	983k	holed.file

Above holey file is as expected aproximately 1mb. 
However, when I try on 'development' 2.4.x kernel

	[adam@pepsi /tmp]$ uname -a
	Linux pepsi 2.4.0-test7-packet #24 SMP Fri Sep 8 20:26:35 EDT 2000 i686

	[adam@pepsi /tmp]$  dd if=/dev/zero of=holed.file bs=1000 seek=5000 count=1000
	1000+0 records in
	1000+0 records out

	[adam@pepsi /tmp]$ ls -l holed.file 
	-rw-rw-r--    1 adam     adam      6000000 Nov 29 08:52 holed.file

	[adam@pepsi /tmp]$ du -sh holed.file 
	1.9M    holed.file

The holey file is twice as big, 

at almost 2mb instead of expected 1mb.

-- 
Adam
http://www.eax.com	The Supreme Headquarters of the 32 bit registers

-
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <Pine.GSO.4.21.0012020517290.20770-100000@chia.umiacs.umd.edu>]

end of thread, other threads:[~2000-12-02 21:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-29 13:00 'holey files' not holey enough Adam
2000-11-29 13:07 ` Tigran Aivazian
2000-11-29 13:14   ` Adam
2000-11-29 20:55   ` Adam
2000-11-29 20:03     ` Martin Josefsson
2000-11-29 22:36 ` Marc Mutz
2000-11-29 23:18   ` safemode
2000-11-29 23:34   ` Andreas Dilger
2000-11-30 14:34     ` Adam
2000-11-30 17:45       ` Andreas Dilger
2000-12-01 14:13     ` Marc Mutz
     [not found] <Pine.GSO.4.21.0012020517290.20770-100000@chia.umiacs.umd.edu>
2000-12-02 20:40 ` Jaakko Hyvätti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox