Martijn Coenen
a7bbde7dfb
BACKPORT: loop: Clean up LOOP_SET_STATUS lo_flags handling
...
LOOP_SET_STATUS(64) will actually allow some lo_flags to be modified; in
particular, LO_FLAGS_AUTOCLEAR can be set and cleared, whereas
LO_FLAGS_PARTSCAN can be set to request a partition scan. Make this
explicit by updating the UAPI to include the flags that can be
set/cleared using this ioctl.
The implementation can then blindly take over the passed in flags,
and use the previous flags for those flags that can't be set / cleared
using LOOP_SET_STATUS.
Signed-off-by: Martijn Coenen <maco@android.com >
Reviewed-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Jens Axboe <axboe@kernel.dk >
(cherry picked from commit faf1d25440d6ad06d509dada4b6fe62fea844370)
Bug: 148607611
Change-Id: If80c0cce4ef7b1af4753246021981795bbc54ca0
2020-08-10 19:48:02 +02:00
..
2019-12-08 21:42:38 -08:00
2018-07-30 16:21:49 -04:00
2018-07-23 19:18:10 +01:00
2019-09-19 09:09:29 +02:00
2020-06-07 13:17:54 +02:00
2020-01-27 15:55:44 +01:00
2020-06-25 15:33:10 +02:00
2020-02-01 14:39:37 +00:00
2018-07-19 23:26:01 -07:00
2020-06-01 22:15:34 +02:00
2018-08-06 10:24:33 +02:00
2018-08-15 22:54:12 -07:00
2018-08-22 10:52:49 -07:00
2018-08-11 15:46:41 -06:00
2018-07-09 09:07:52 -06:00
2019-07-26 09:14:15 +02:00
2020-01-27 14:51:14 +01:00
2018-07-27 10:40:16 +02:00
2019-12-31 16:34:57 +01:00
2019-12-17 20:34:59 +01:00
2019-08-06 19:06:52 +02:00
2020-04-13 10:45:03 +02:00
2018-07-29 12:53:54 -07:00
2018-07-12 17:37:13 -07:00
2020-03-16 18:13:07 +00:00
2018-07-19 13:58:44 -07:00
2018-07-04 22:30:28 +09:00
2018-08-07 12:15:03 -07:00
2018-07-15 14:03:06 +02:00
2019-01-16 09:48:42 -05:00
2018-07-15 13:55:47 +02:00
2019-09-23 14:11:59 -07:00
2020-05-21 11:55:14 -07:00
2019-09-23 14:11:56 -07:00
2019-05-25 18:23:40 +02:00
2018-07-29 12:57:26 -07:00
2018-06-29 11:32:55 +09:00
2020-04-03 17:25:30 +00:00
2019-02-27 10:08:58 +01:00
2018-06-27 19:21:25 +02:00
2020-07-29 13:22:30 +02:00
2020-01-14 20:07:01 +01:00
2020-04-30 16:38:09 +00:00
2018-07-26 17:04:37 -07:00
2020-01-15 14:52:07 +00:00
2018-07-07 17:41:38 +02:00
2019-09-16 08:21:47 +02:00
2018-11-21 09:19:23 +01:00
2018-08-06 17:59:22 +02:00
2020-06-22 09:05:12 +02:00
2018-08-03 10:03:57 -07:00
2020-04-27 22:51:59 -07:00
2020-08-10 19:48:02 +02:00
2019-12-08 21:41:34 -08:00
2018-08-02 06:04:57 -04:00
2018-07-27 07:52:39 -04:00
2018-10-05 16:32:04 -07:00
2018-07-24 14:41:08 -07:00
2018-10-05 16:32:04 -07:00
2018-07-13 14:21:16 -07:00
2018-06-20 19:10:06 -06:00
2020-05-28 12:20:07 +02:00
2019-01-09 17:38:36 +01:00
2018-07-29 12:37:06 -07:00
2018-11-27 16:13:01 +01:00
2019-07-21 09:03:02 +02:00
2020-04-28 16:29:52 -07:00
2018-07-08 11:13:25 +09:00
2018-08-15 14:59:06 -05:00
2018-07-19 11:46:57 +01:00
2018-09-10 10:03:02 +02:00
2018-08-07 12:22:15 -07:00
2018-07-24 14:44:00 -07:00
2018-07-31 19:56:42 +10:00
2018-08-11 12:13:49 -07:00
2019-10-07 15:27:39 -04:00
2020-02-19 14:34:34 -08:00
2018-09-02 16:14:44 -07:00
2018-07-10 22:18:52 +02:00
2018-07-23 20:44:12 -07:00
2020-02-01 14:39:37 +00:00
2018-11-23 08:17:06 +01:00
2020-04-02 15:28:16 +02:00
2018-10-05 16:32:04 -07:00
2018-10-07 21:06:28 -07:00
2019-06-17 19:51:56 +02:00
2020-01-09 15:11:34 -08:00
2020-05-02 17:25:48 +02:00
2018-08-13 08:42:25 -07:00
2019-03-21 16:25:26 -07:00
2018-08-01 09:56:10 -07:00
2018-06-24 14:39:46 +02:00
2019-06-04 08:02:33 +02:00
2018-06-30 21:05:42 +09:00
2018-10-08 15:45:18 +01:00
2018-07-27 06:39:57 -04:00
2020-07-21 00:30:06 +00:00
2018-07-24 17:39:28 -04:00
2020-07-22 09:32:09 +02:00
2018-09-03 21:23:24 -07:00
2020-04-30 23:55:25 +00:00
2020-04-22 20:28:40 +00:00
2020-01-26 19:04:57 +00:00
2020-01-26 19:04:57 +00:00
2020-08-05 10:06:01 +02:00
2020-06-03 08:19:46 +02:00