]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
krbd: fix sysfs path in the comment 1790/head
authorIlya Dryomov <ilya.dryomov@inktank.com>
Thu, 8 May 2014 14:17:48 +0000 (18:17 +0400)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Thu, 8 May 2014 14:17:48 +0000 (18:17 +0400)
It's "/sys/bus/rbd/devices/<id>", but libudev works with devices and
not busses, so it's really "/sys/devices/rbd/<id>/".

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
src/krbd.cc

index 9ac413718136b1b4979afe9931ea19ec28e0fc8b..441355fa780910ff0b0059801b3863021ae4bc8d 100644 (file)
@@ -175,7 +175,7 @@ static int wait_for_udev_add(struct udev_monitor *mon, const char *pool,
   struct udev_device *bus_dev = NULL;
 
   /*
-   * Catch /sys/bus/rbd/<id>, note it, and wait for the corresponding
+   * Catch /sys/devices/rbd/<id>/ and wait for the corresponding
    * block device to show up.  This is necessary because rbd devices
    * and block devices aren't linked together in our sysfs layout.
    */