29.01.2018 14:24, Adam Borowski пишет: ... > > So any event (the user's request) has already happened. A rc system, of > which systemd is one, knows whether we reached the "want root filesystem" or > "want secondary filesystems" stage. Once you're there, you can issue the > mount() call and let the kernel do the work. > >> It is a btrfs choice to not expose compound device as separate one (like >> every other device manager does) > > Btrfs is not a device manager, it's a filesystem. > >> it is a btrfs drawback that doesn't provice anything else except for this >> IOCTL with it's logic > > How can it provide you with something it doesn't yet have? If you want the > information, call mount(). And as others in this thread have mentioned, > what, pray tell, would you want to know "would a mount succeed?" for if you > don't want to mount? > >> it is a btrfs drawback that there is nothing to push assembling into "OK, >> going degraded" state > > The way to do so is to timeout, then retry with -o degraded. >
That's possible way to solve it. This likely requires support from mount.btrfs (or btrfs.ko) to return proper indication that filesystem is incomplete so caller can decide whether to retry or to try degraded mount. Or may be mount.btrfs should implement this logic internally. This would really be the most simple way to make it acceptable to the other side by not needing to accept anything :) -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html