linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Better handling of stale scrub status
@ 2014-05-20 15:30 Holger Hoffstätte
  2014-05-31 21:54 ` Marc MERLIN
  0 siblings, 1 reply; 2+ messages in thread
From: Holger Hoffstätte @ 2014-05-20 15:30 UTC (permalink / raw)
  To: linux-btrfs


As Marc Merlin recently wrote in his blog [1] scrub can sometimes leave a 
stale state file behind, making cancel/resume complain. I took a peek at 
the code and found most of the scrub state file handling fairly 
straightforward, so before I go off and start hacking, what would a 
better behaviour look like?

- delete the stale file?
- fix the file by setting the "finished" flag?
- something else entirely?

I currently lean towards fixing (and not printing an error?), but maybe 
someone else has different ideas about how this should be handled.
Any suggestions welcome..

cheers
Holger

[1] http://marc.merlins.org/perso/btrfs/post_2014-04-26_Btrfs-Tips_-
Cancel-A-Btrfs-Scrub-That-Is-Already-Stopped.html


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-31 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-20 15:30 Better handling of stale scrub status Holger Hoffstätte
2014-05-31 21:54 ` Marc MERLIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).