linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Replacing corrupted files/directories
@ 2010-12-03  3:25 Ravi Pinjala
  0 siblings, 0 replies; only message in thread
From: Ravi Pinjala @ 2010-12-03  3:25 UTC (permalink / raw)
  To: linux-btrfs

Is there a recommended way to replace a corrupted file or directory on
btrfs? The use case I'm thinking of is handling filesystem corruption
by restoring only the corrupted files from backup. For a corrupted
file, it seems like deleting the file and replacing it with the copy
from the backup works, but I don't know if this is necessarily the
best way - the nature of copy-on-write means that there's still
corrupt data lying around on the filesystem, right? And for
directories, it's tricky, because (afaik) there's no way to delete a
directory without first walking it; not good if it's corrupted.

I think this is probably also relevant to something like Ceph or CRFS,
where redundancy exists, but isn't managed by btrfs directly.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-03  3:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-03  3:25 Replacing corrupted files/directories Ravi Pinjala

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).