GNU bug report logs -
#7421
[Feature request]: add option to dd to issue ioctl(BLKFLSBUF) on output descriptior after each write or at the end
Previous Next
Reported by: Марк Коренберг <socketpair <at> gmail.com>
Date: Wed, 17 Nov 2010 11:47:02 UTC
Severity: wishlist
Tags: wontfix
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7421 in the body.
You can then email your comments to 7421 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7421
; Package
coreutils
.
(Wed, 17 Nov 2010 11:47:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Марк Коренберг <socketpair <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Wed, 17 Nov 2010 11:47:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Feature request]: add option to dd to issue ioctl(BLKFLSBUF) on
output descriptior after each write or at the end
I already has sent a message about fsync/fdatasync after each write.
It seems that ioctl(BLKFLSBUF) need be implemented in same semantics.
in oflags and conv
i.e. ioctl after each write oflags=blkflsbuf
and ioctl at the end, if specified in conv=blkflsbuf
--
Segmentation fault
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#7421
; Package
coreutils
.
(Sun, 25 Jan 2015 18:43:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 7421 <at> debbugs.gnu.org (full text, mbox):
unarchive 7421
tag 7421 wontfix
close 7421
stop
On 17/11/10 10:41, Марк Коренберг wrote:
> [Feature request]: add option to dd to issue ioctl(BLKFLSBUF) on
> output descriptior after each write or at the end
>
> I already has sent a message about fsync/fdatasync after each write.
> It seems that ioctl(BLKFLSBUF) need be implemented in same semantics.
>
> in oflags and conv
> i.e. ioctl after each write oflags=blkflsbuf
> and ioctl at the end, if specified in conv=blkflsbuf
This is already supported with the `blockdev --flushbufs` command.
Given this is a low level linux specific interface, it's more suited
to the blockdev command than a more general tool like dd.
Note ioctl(BLKFLSBUF) only writes out dirty pages to the block device,
it doesn't guarantee to send a flush request to the device.
Also http://lwn.net/Articles/433384/ mentions that BLKFLSBUF also
invalidates the bdev mapping, which isn't generally desirable,
and doesn't work for non-block file systems.
We're considering adding syncfs() support to the sync command
which should cater for much of the use case you describe here:
That's discussed at http://bugs.gnu.org/19681
thanks,
Pádraig.
Added tag(s) wontfix.
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Sun, 25 Jan 2015 18:43:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
7421 <at> debbugs.gnu.org and Марк Коренберг <socketpair <at> gmail.com>
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Sun, 25 Jan 2015 18:43:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 23 Feb 2015 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 121 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.