commit | c3f7c9397609705ef848cc98a5fb429b3e90c3c4 | [log] [tgz] |
---|---|---|
author | Josef Bacik <jbacik@fb.com> | Wed May 16 14:51:18 2018 -0400 |
committer | Jens Axboe <axboe@kernel.dk> | Wed May 16 12:54:07 2018 -0600 |
tree | 0d35e825b5957ac13ff980194964196bb08a01a8 | |
parent | 8364da4751cf22201d74933d5e634176f44ed407 [diff] |
nbd: update size when connected I messed up changing the size of an NBD device while it was connected by not actually updating the device or doing the uevent. Fix this by updating everything if we're connected and we change the size. cc: stable@vger.kernel.org Fixes: 639812a ("nbd: don't set the device size until we're connected") Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>