GNU bug report logs - #7420
[Feature request]: add option to dd to fsync|fdatasync after each block written

Previous Next

Package: coreutils;

Reported by: Марк Коренберг <socketpair <at> gmail.com>

Date: Wed, 17 Nov 2010 11:47:02 UTC

Severity: wishlist

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Марк Коренберг <socketpair <at> gmail.com>
To: 7420 <at> debbugs.gnu.org
Subject: bug#7420: [Feature request]: add option to dd to fsync|fdatasync after each block written
Date: Wed, 17 Nov 2010 15:19:33 +0500
[Feature request]: add option to dd to fsync|fdatasync after each block written

Suppose I want to show progress with:

pv image.img | dd bs=16M of=/dev/sdc

it will not work, as dd will write to sdc momentarily. dd will hang on
close(1) waiting for actual write to complete (tested on USB stick
Linux 2.6.32)

I decide to use  oflag=direct. It help, OK. But: http://kerneltrap.org/node/7563

It will be nice if, dd will be able to fsync/fdatasync after each block.

I think, it is useful for other usages.

-- 
Segmentation fault




This bug report was last modified 10 years and 178 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.