Martijn Coenen
d11bdba9da
UPSTREAM: 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 faf1d25440 )
Bug: 148607611
Change-Id: I614a6d583970b65fbcfb0df2e4bb2d4b8471acd3
2020-08-10 19:41:49 +02:00
..
2019-11-05 12:44:34 +01:00
2019-09-07 17:44:25 +02:00
2020-06-07 13:18:48 +02:00
2020-01-12 15:36:52 +01:00
2019-09-25 11:00:46 +02:00
2019-08-14 23:36:27 +02:00
2019-08-14 23:36:27 +02:00
2019-09-10 09:26:33 -04:00
2019-09-13 13:10:06 -07:00
2019-06-24 19:23:46 +02:00
2019-07-09 12:11:59 -07:00
2020-06-02 06:36:58 +00:00
2019-06-26 20:14:13 -04:00
2019-06-27 19:25:05 +02:00
2020-01-07 16:02:45 -08:00
2020-07-03 03:33:47 +00:00
2019-07-25 11:05:10 +02:00
2019-09-19 14:22:44 +02:00
2019-09-09 14:59:19 +02:00
2019-09-09 14:59:05 +02:00
2019-11-05 12:44:34 +01:00
2019-12-31 16:43:43 +01:00
2019-12-17 19:56:20 +01:00
2019-07-16 19:23:23 -07:00
2019-09-25 17:51:39 -07:00
2020-04-08 09:08:42 +02:00
2019-08-02 14:44:02 +10:00
2019-11-11 16:04:21 -08:00
2019-09-16 10:18:01 -04:00
2020-05-06 08:15:01 +02:00
2019-09-16 22:02:45 +02:00
2019-08-05 17:56:46 +02:00
2019-09-21 14:26:33 -07:00
2020-05-21 11:40:32 -07:00
2019-08-12 19:33:50 -07:00
2019-10-23 14:26:37 +02:00
2019-09-04 12:43:54 +02:00
2019-07-31 19:13:40 -04:00
2019-07-04 12:30:48 -07:00
2019-06-29 11:06:17 -07:00
2019-08-31 01:08:26 +02:00
2020-04-03 17:20:28 +00:00
2019-08-31 23:44:28 -07:00
2020-07-31 18:34:21 +02:00
2020-01-14 20:08:24 +01:00
2019-09-18 10:43:22 -06:00
2019-06-18 17:14:35 +02:00
2020-02-18 23:09:23 +00:00
2019-07-04 02:29:49 +02:00
2019-07-25 11:05:10 +02:00
2019-07-25 11:05:10 +02:00
2019-08-22 17:24:51 +02:00
2020-01-15 14:55:05 +00:00
2019-09-08 15:37:04 +02:00
2019-07-10 18:43:43 -07:00
2019-08-07 10:21:38 -05:00
2019-07-02 18:56:01 +02:00
2020-06-22 09:30:57 +02:00
2020-08-10 19:41:49 +02:00
2020-06-25 07:49:21 +02:00
2019-08-19 13:04:45 -07:00
2019-06-25 22:14:11 +02:00
2019-06-21 16:45:38 -04:00
2019-08-23 14:58:07 -07:00
2019-07-12 11:05:40 -07:00
2020-06-30 14:28:41 +02:00
2019-11-06 06:17:38 +09:00
2019-09-06 14:59:18 +02:00
2019-09-23 16:10:28 -05:00
2019-08-28 11:29:38 +02:00
2019-10-02 20:32:27 -06:00
2019-09-06 15:02:16 +02:00
2020-05-02 08:49:00 +02:00
2019-07-30 20:34:34 +02:00
2019-09-20 16:07:54 -07:00
2019-07-25 11:05:10 +02:00
2019-11-15 12:48:32 -08:00
2019-07-16 19:23:24 -07:00
2020-02-20 10:08:46 -08:00
2019-08-24 16:55:25 -07:00
2019-07-25 11:05:10 +02:00
2019-11-05 15:50:14 +01:00
2019-08-27 20:54:14 -07:00
2019-06-29 10:33:57 -06:00
2019-10-04 15:57:51 +02:00
2020-04-01 11:01:57 +02:00
2019-06-17 20:20:36 -07:00
2019-08-03 11:02:46 -07:00
2020-01-08 15:26:59 -08:00
2020-04-13 10:48:12 +02:00
2019-09-16 16:26:11 +02:00
2019-08-31 23:44:28 -07:00
2019-08-14 16:52:13 +02:00
2020-05-14 22:46:11 +00:00
2019-07-25 11:05:10 +02:00
2020-07-22 09:33:11 +02:00
2019-08-23 11:26:24 -06:00
2019-10-29 18:11:34 +00:00
2019-09-18 20:17:50 +02:00
2019-09-18 20:17:50 +02:00
2019-07-22 11:52:27 -04:00
2019-07-25 11:05:10 +02:00
2019-07-25 11:05:10 +02:00
2019-08-01 21:49:46 +02:00
2020-08-05 09:59:42 +02:00
2019-07-25 11:05:10 +02:00
2019-11-05 13:50:57 -08:00
2020-06-03 08:21:33 +02:00