Skip to content
  1. Mar 08, 2016
  2. Mar 05, 2016
    • Arnd Bergmann's avatar
      nbd: use correct div_s64 helper · 5e454c67
      Arnd Bergmann authored
      
      
      The do_div() macro now checks its arguments for the correct type,
      and refuses anything other than u64, so we get a warning about
      nbd_ioctl passing in an loff_t:
      
      drivers/block/nbd.c: In function '__nbd_ioctl':
      drivers/block/nbd.c:757:77: error: comparison of distinct pointer types lacks a cast [-Werror]
      
      This changes the nbd code to use div_s64() instead, which takes
      a signed argument.
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: 37091fdd ("nbd: Create size change events for userspace")
      Signed-off-by: default avatarJens Axboe <axboe@fb.com>
      5e454c67
  3. Mar 04, 2016
  4. Mar 03, 2016
  5. Feb 29, 2016
  6. Feb 15, 2016
    • Markus Schneider-Pargmann's avatar
      nbd: Create size change events for userspace · 37091fdd
      Markus Schneider-Pargmann authored
      The userspace needs to know when nbd devices are ready for use.
      Currently no events are created for the userspace which doesn't work for
      systemd.
      
      See the discussion here: https://github.com/systemd/systemd/pull/358
      
      
      
      This patch uses a central point to setup the nbd-internal sizes. A ioctl
      to set a size does not lead to a visible size change. The size of the
      block device will be kept at 0 until nbd is connected. As soon as it
      connects, the size will be changed to the real value and a uevent is
      created. When disconnecting, the blockdevice is set to 0 size and
      another uevent is generated.
      
      Signed-off-by: default avatarMarkus Pargmann <mpa@pengutronix.de>
      37091fdd
  7. Feb 10, 2016
  8. Feb 09, 2016
Loading