Letting mdev + devtmpfs play together?

Laurent Bercot ska-dietlibc at skarnet.org
Sat Apr 18 16:42:19 UTC 2015


On 18/04/2015 18:00, Floris Bos wrote:
> Simply letting devtmpfs instead of mdev handle the removal of the actual device node files wouldn't be an option?
> I don't think I have a real need for sequentiality on any other operation.

  I'm not sure whether devtmpfs handles device node removal itself.
I'd need to test that.

  In any case, the answer to your original question is no, you cannot
configure mdev to run but not remove nodes. You can patch it, though:
the relevant part of the code, which you may want to comment, is the
following block:

                 if (operation == OP_remove && major >= -1) {
                         if (ENABLE_FEATURE_MDEV_RENAME && alias) {
                                 if (aliaslink == '>') {
                                         dbg1("unlink: %s", device_name);
                                         unlink(device_name);
                                 }
                         }
                         dbg1("unlink: %s", node_name);
                         unlink(node_name);
                 }

-- 
  Laurent



More information about the busybox mailing list