1. 16 3月, 2016 2 次提交
  2. 14 3月, 2016 1 次提交
  3. 09 3月, 2016 5 次提交
  4. 08 3月, 2016 1 次提交
  5. 05 3月, 2016 1 次提交
    • A
      nbd: use correct div_s64 helper · 5e454c67
      Arnd Bergmann 提交于
      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: NArnd Bergmann <arnd@arndb.de>
      Fixes: 37091fdd ("nbd: Create size change events for userspace")
      Signed-off-by: NJens Axboe <axboe@fb.com>
      5e454c67
  6. 04 3月, 2016 19 次提交
  7. 03 3月, 2016 1 次提交
    • J
      Merge tag 'nbd-for-4.6' of git://git.pengutronix.de/git/mpa/linux-nbd into for-4.6/drivers · ff482f7f
      Jens Axboe 提交于
      NBD for 4.6
      
      Markus writes:
      
      This pull request contains 7 patches for 4.6.
      
      Patch 1 fixes some unnecessarily complicated code I introduced some versions
      ago for debugfs.
      
      Patch 2 removes the criticised signal usage within NBD to kill the NBD threads
      after a timeout. This code was used for the last years and is now replaced by
      simply killing the tcp connection.
      
      Patches 3-6 are some smaller cleanups.
      
      Patch 7 uevents for the userspace. This way udev/systemd can react on connected
      NBD devices.
      ff482f7f
  8. 01 3月, 2016 1 次提交
  9. 29 2月, 2016 4 次提交
  10. 15 2月, 2016 1 次提交
    • M
      nbd: Create size change events for userspace · 37091fdd
      Markus Pargmann 提交于
      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: NMarkus Pargmann <mpa@pengutronix.de>
      37091fdd
  11. 11 2月, 2016 4 次提交