Files
kernel_arpi/include/uapi/linux
Anand Jain 228a73abde btrfs: introduce new ioctl to unregister a btrfs device
Support for a new command that can be used eg. as a command

  $ btrfs device scan --forget [dev]'
(the final name may change though)

to undo the effects of 'btrfs device scan [dev]'. For this purpose
this patch proposes to use ioctl #5 as it was empty and is next to the
SCAN ioctl.

The new ioctl BTRFS_IOC_FORGET_DEV works only on the control device
(/dev/btrfs-control) to unregister one or all devices, devices that are
not mounted.

The argument is struct btrfs_ioctl_vol_args, ::name specifies the device
path. To unregister all device, the path is an empty string.

Again, the devices are removed only if they aren't part of a mounte
filesystem.

This new ioctl provides:

- release of unwanted btrfs_fs_devices and btrfs_devices structures
  from memory if the device is not going to be mounted

- ability to mount filesystem in degraded mode, when one devices is
  corrupted like in split brain raid1

- running test cases which would require reloading the kernel module
  but this is not possible eg. due to mounted filesystem or built-in

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
2019-02-25 14:13:30 +01:00
..
2018-07-23 19:18:10 +01:00
2019-01-07 08:45:47 -08:00
2019-01-24 11:11:42 -07:00
2018-11-17 20:33:32 -08:00
2018-12-20 19:13:07 +01:00
2018-06-18 15:11:53 +10:00
2018-10-15 15:43:07 +02:00
2018-09-13 10:46:24 +02:00
2018-09-05 22:27:11 -07:00
2018-11-30 17:16:38 -08:00
2019-01-15 21:45:21 -08:00
2018-07-07 17:41:38 +02:00
2018-08-03 10:03:57 -07:00
2018-12-19 09:40:13 +01:00
2018-04-11 10:28:37 -07:00
2018-10-17 13:56:58 -07:00
2018-12-16 12:15:25 -08:00
2018-12-01 12:38:32 +01:00
2018-05-31 00:13:56 +08:00
2018-04-14 11:59:31 -04:00
2018-11-19 12:25:43 -08:00
2018-04-11 10:28:37 -07:00
2018-09-03 13:29:38 +02:00