This is a request for a review. This patch fixes a bug in specfs
relating to dealing with the EOF condition of a block device.
If the EOF occurs in the middle of a block, specfs was not
properly calculating the truncation for the I/O.
This problem was first found by Tor. To
> This problem was first found by Tor. Tor's example creates
> an oddly-sized VN partition and then dd's from it. Without the
> patch the dd believes that it can read 2880 sectors. With the
> patch it correctly reads the last (truncated) block.
Actually, the problem was discus
>Once this patch is committed, the only problem we will have is
>in recognizing the write-EOF case, which I will have a
>recommendation for after this patch goes in.
...and the lack of error code returns on write.
--
Poul-Henning Kamp FreeBSD coreteam member
[EMAIL PROT
This is a request for a review. This patch fixes a bug in specfs
relating to dealing with the EOF condition of a block device.
If the EOF occurs in the middle of a block, specfs was not
properly calculating the truncation for the I/O.
This problem was first found by Tor. To