12.03.2019 18:48, Martin Raiber пишет: > Hi, > > I know there are corner cases that probably make this difficult (such as > remounting the file system rw while a send is in progress), but it would > be nice if one could send all subvolumes as long as a file system is > mounted read-only (pretend every subvol ist read-only if the file system > is mounted read-only). >
It is possible to mount top level read-only and still mount subvolume read-write. > Background/use case: > > Through no fault of btrfs, metadata got damaged, which makes a file > system go read-only after a while and I'd like to btrfs send/receive the > subvolumes and snapshots that are still readable to another btrfs file > system (btrfs send/receive being the only option that does this somewhat > efficiently). Only I cannot send the subvolumes that are not set to > read-only prior to the file system going read-only. > I patched the kernel and btrfs-tools (just commenting the checks out) to > support this in my case, but it would be great if this would be possible > without patching. > > Regards, > Martin Raiber >