aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorShaohua Li <[email protected]>2017-08-14 15:04:54 -0700
committerJens Axboe <[email protected]>2017-08-23 08:54:03 -0600
commitcedcafad8277b3a07e90bf2f68fff5c6b28a183e (patch)
tree6bbd8a28bd9513188b29f1dec567841726053bc6 /scripts/gdb/linux/tasks.py
parent3bf2bd20734e3e6ffda53719a9c10fb3ee9c5ffa (diff)
nullb: add interface to power on disk
The device created in nullb configfs interface isn't power on by default. After user configures the device, user can do 'echo 1 > xxx/nullb/device_name/power' to power on the device, which will create a disk. the xxx/nullb/device_name/index is the disk index, so if the index is 2, the new created disk should be named as /dev/nullb2. Note, the 'index' is only valid after disk is power on. 'echo 0 > xxx/nullb/device_name/power' will remove the disk. Note, this doesn't remove the device. To remove the device, user should do 'rmdir xxx/nullb/device_name'. Removing the device will remove the disk too. Signed-off-by: Shaohua Li <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions