coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] shred: fix direct I/O failures for last write to file


From: Pádraig Brady
Subject: [PATCH] shred: fix direct I/O failures for last write to file
Date: Thu, 07 Nov 2013 14:37:08 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

Since the previous patch renabled direct I/O that was disabled on most
(file) systems in coreutils 6.0, it reactivates a bug that was present
since 5.3.0 when direct I/O was added.

I.E. there can now be an odd sized direct I/O write at the end of file,
which will trigger an EINVAL write error which is not currently handled.
The attached patch should fix it up.

thanks,
Pádraig.

Attachment: shred-directio-fix.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]