On Mon, Aug 06, 2018 at 09:09:47AM +0800, Anand Jain wrote: > Adds cli and ioctl to forget a scanned device or forget all stale > devices in the kernel.
Please provide more details about your idea of the usecase, ie. how excactly and when the command is supposed to be used. I vaguely recollect that we've discussed the commandline interface but don't remember the result. Nevertheless, I think that the 'forget' command should be an option of 'device scan'. btrfs device scan --forget /dev/sda Next I'm not sure the freeing all stale devices is a good idea. Should it be more fine grained? Suppose there are several multi-device filesystems on the host and some of them not mounted. The devices have been scanned eg. via udev and the filesystems are ready to be mounted. Calling 'forget all' will now prevent mount without another 'device scan'. What if a particular filesystem needs to forget the scanned devices, or just one filesystem:device. And there's the question how to specify the devices, it can be by device path or uuid or maybe device id. -- 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