2003-01-11 08:44:47

by bob

[permalink] [raw]
Subject: Partition full BUG?

Hi. I have looked for an answer to a question all over the net and
haven't found an answer. Hopefully someone here can answer it. When
modifying a file on a nearly full disk partition, if the opened file
can't contain all of the data appended to it, the whole file is
truncated to zero bytes (only the filename remains). Is that supposed
to happen? (The partition is /boot, the filesystem ext3, the file is
grub.conf). It just seems like it would be better if it reported an
error like '/dev/hda1 full' and left the file intact.

Thanks in advance,

Bob.


2003-01-11 15:48:55

by DervishD

[permalink] [raw]
Subject: Re: Partition full BUG?

Hi Bob :)

> can't contain all of the data appended to it, the whole file is
> truncated to zero bytes (only the filename remains). Is that supposed
> to happen?

Does that happen with *any* program? I don't think so. It's more
probable that the bug is into your editor, not into the kernel ;))
Try to fill a filesystem using 'dd' or something like that.

Ra?l