Paolo Bonzini
2c4cffe851
block: fix bogus EFAULT error from SG_IO ioctl
...
Whenever blk_fill_sghdr_rq fails, its errno code is ignored and changed to
EFAULT. This can cause very confusing errors:
$ sg_persist -k /dev/sda
persistent reservation in: pass through os error: Bad address
The fix is trivial, just propagate the return value from
blk_fill_sghdr_rq.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-06-27 11:43:34 -06:00
..
2015-02-12 14:13:23 -08:00
2015-05-22 08:58:55 -06:00
2015-06-02 08:33:34 -06:00
2015-06-25 16:00:17 -07:00
2015-06-26 12:35:01 -07:00
2015-05-05 13:40:42 -06:00
2014-09-25 15:22:45 -06:00
2015-06-02 08:33:34 -06:00
2014-02-18 12:21:26 -08:00
2014-06-03 12:57:53 -07:00
2015-02-05 10:14:54 -07:00
2015-04-11 22:27:13 -04:00
2015-05-29 13:10:23 -06:00
2014-05-28 10:15:41 -06:00
2015-05-27 15:22:15 +02:00
2015-03-13 08:26:53 -06:00
2015-06-01 14:35:56 -06:00
2015-06-01 14:35:56 -06:00
2015-06-25 14:29:53 -07:00
2015-01-29 08:30:51 -08:00
2015-03-31 09:45:50 -06:00
2014-04-09 21:54:06 -06:00
2015-06-25 16:00:17 -07:00
2015-01-23 14:15:46 -07:00
2015-06-02 08:33:33 -06:00
2015-01-08 08:59:01 -07:00
2015-05-08 14:17:23 -06:00
2015-06-25 16:00:17 -07:00
2012-12-06 14:33:02 +01:00
2015-02-04 09:57:52 -07:00
2015-06-25 16:00:17 -07:00
2014-01-21 20:18:26 -08:00
2014-09-08 10:00:35 -06:00
2014-02-24 14:46:32 -08:00
2015-06-25 16:00:17 -07:00
2015-06-25 16:00:17 -07:00
2015-05-20 09:05:45 -06:00
2014-10-31 08:30:43 -06:00
2014-09-27 09:14:59 -06:00
2012-03-06 21:27:21 +01:00
2014-09-27 09:14:59 -06:00
2013-07-03 13:25:24 +02:00
2014-09-03 15:01:02 -06:00
2015-06-27 11:43:34 -06:00
2014-09-27 09:14:59 -06:00