On Sat, Sep 06, 2014 at 04:05:20PM -0400, Chris Mason wrote: > On 09/03/2014 09:36 AM, Miao Xie wrote: > > This patchset implements device list automatic building function. As we > > know, currently we need scan the devices to build device list by a user tool > > before mounting the filesystem, especially mount the filesystem after > > we re-install btrfs module. It is not convenient. This patchset can improve > > that problem. With this patchset, we will scan all the devices in the > > system to build the device list if we find the number of the devices > > is not right when we mount the filesystem. By this way, we needn't scan > > the device by the user tool and reduce the mount failure probability due > > to the incomplete device list. > > Thanks for working on these patches, but I really prefer that we do > these scans from userspace. I agree. The userspace approach gives more control of when and how the scanning is done. Yes the scan has to be done after the module is inserted, but distros have that in initrd. Reinstalling module is not something a normal user does and developers know how to workaround. Automatic scanning in usperspace can be done via the mount helper and this is IMO the way to go. There's a patch for that from Goffredo, not merged yet, the patch backlog is still too long. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
