patch: Synchronous write

Hi all,

  The attached patch adds a checkbox to the file operations dialog. When
activated, the O_SYNC bit is set on open(2) calls when used for writing.
This way, the kernel buffer-cache  machinery doesn't take effect and you
get ``real''  progress/eta/speed values.  I use it  when writing  to low
speed media (such as  usb memory cards) in order to  have MC display the
real transfer speed and so not to sit back waiting minutes in front of a
silent ``sync'' or ``umount''.

  Dunno  the  audience that  such  a  functionality  may have,  but  I'm
submitting the patch anyway...


+(split //,' .:-;!/>)|&IH%*#')[$k&15];for($i=$k=$r=0;$j=$r*$r-$i*$i

Attachment: mc-4.6.0-synchronous_write.diff.gz
Description: GNU Zip compressed data

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