[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9800: Incomplete truncated file buffers from the /proc filesystem
From: |
Juri Linkov |
Subject: |
bug#9800: Incomplete truncated file buffers from the /proc filesystem |
Date: |
Mon, 07 Feb 2022 21:41:01 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
>> Large files from the /proc filesystem are visited incompletely,
>> their file buffers are truncated at the position 65536.
>
> It seems like this issue has been exacerbated somewhat since this was
> reported.
>
> (with-temp-buffer
> (insert-file-contents "/proc/cpuinfo")
> (buffer-size))
> => 16384
>
> (with-temp-buffer
> (call-process "cat" nil t nil "/proc/cpuinfo")
> (buffer-size))
> => 24626
>
> But perhaps it's dependent on the block size. (This is on
> Debian/bookworm with Emacs 29.)
I confirm that the block size now is decreased from 65536 to 16384,
so more buffers are truncated.