Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* btrfs send subvolume from read-only mount with missing ro=true flag?
@ 2023-12-16 14:47 thomas
  2023-12-16 16:45 ` Andrei Borzenkov
  0 siblings, 1 reply; 3+ messages in thread
From: thomas @ 2023-12-16 14:47 UTC (permalink / raw)
  To: linux-btrfs

I have a btrfs volume damaged (it seems beyond repair..) by writing to 
it via an unstable USB connection which disconnected at a particularly 
bad time it seems.

I found I can still mount said volume in read-only mount using:

|mount -t btrfs -o ro,rescue=ignorebadroots,rescue=ignoredatacsums 
/dev/ice /mnt/point |

Now I would have liked to copy some of the subvolumes from that damaged 
volume over to a new one, but sadly |`btrfs send||`| disallows using 
subvolumes that don't already have a ro=true flag on them, so only 
read-only snapshots are allowed as source.

Can I somehow make |`btrfs send||`| believe that on a read-only mount 
everything is guaranteed to be read-only, even if the subvolume does not 
have that read-only flag? Sadly because I can only mount said damaged 
btrfs volume in read-only mode I can't add the read-only flag to the 
subvolumes I'd like to copy..


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

end of thread, other threads:[~2023-12-16 22:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-16 14:47 btrfs send subvolume from read-only mount with missing ro=true flag? thomas
2023-12-16 16:45 ` Andrei Borzenkov
2023-12-16 22:55   ` thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox