[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9800: Incomplete truncated file buffers from the /proc filesystem
From: |
Paul Eggert |
Subject: |
bug#9800: Incomplete truncated file buffers from the /proc filesystem |
Date: |
Mon, 24 Oct 2011 15:02:53 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 |
On 10/24/11 14:50, Richard Stallman wrote:
> I think there was a reason for doing it this way. Perhaps so as to
> allocate the space before reading the file.
Yes, that sounds right. And in the typical case where the file is not
growing, that allocates space efficiently. If the file is growing, though,
it's OK to allocate more space after discovering that the initial
allocation was too small.