nano-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2] files: improve the backup procedure to ensure no data is


From: Benno Schulenberg
Subject: Re: [PATCH v2] files: improve the backup procedure to ensure no data is lost
Date: Mon, 6 Jul 2020 12:29:07 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

Op 04-07-2020 om 19:13 schreef Michalis Kokologiannakis:
> 1) Make a temporary backup of the file being written so that there
> is no time window such that (a) an existing file is truncated, and
> (b) the buffer corresponding to said file has not been flushed to
> disk.

Currently, when saving a large file, nano will show "Writing..." on
the status bar.  But with this change, a ^S hides the cursor and
seems to be hung for more than a second (tested with a 50 MB file)
before it shows "Writing...".  This is not good.

When making the backup copy (either for real or only as a fail-safe
measure), nano will have to give some feedback on the status bar,
probably "Making backup...".

And... maybe some people don't want the added delay of this safety
measure, so maybe the fail-safe backup will have to be behind some
option, either to switch it on or off.  But we'll see about that
later, after the feature itself has been released.

Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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