Having option for make-bcache to wait until udev is done

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When you run `make-bcache -B <backing-dev> -C <cache-dev>` the utility
writes the super block(s) of all the devices specified and exits.  Then
udev in conjunction with the bcache udev rules file will do the register
etc. as needed to bring the device up.  Thus if someone scripts bcache
creation there is a race condition between when make-bcache runs and
when the user that issued the command can use the newly created device.

I think it might be better to have an option to wait until done with the
tool or make the default behavior to wait until everything is actually
done?  Otherwise, people need to either do explicit udev settles,
sleeps, sysfs polling, etc. to ensure operation is fully completed.

Thoughts, suggestions?

Thanks!
-Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM Kernel]     [Linux Filesystem Development]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux