diff options
author | Maxim Devaev <[email protected]> | 2022-07-11 13:29:57 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-07-14 16:06:42 +0200 |
commit | 421c8d9a20da92deed2dac227e7ebdee7eb3e88f (patch) | |
tree | 9dd7b02019b4500836d798ac73042c36735cfe6f /net/unix/af_unix.c | |
parent | 8097cf2fb3b2205257f1c76f4808e3398d66b6d9 (diff) |
usb: gadget: f_mass_storage: forced_eject attribute
It allows to reset prevent_medium_removal flag and "eject" the image.
This can be useful to free the drive from a hunging host or if the host
continues to use the drive even after unmounting (Linux does this).
It's also a bit like using an unfolded paperclip on an optical drive.
Previously, the undocumented method of sending SIGUSR1 to a special
"file-storage" kernel thread could be used for these purposes,
but when using multiple storages there was no way to distinguish
one from the other, so we had to send a signal to everyone.
Reviewed-by: Alan Stern <[email protected]>
Signed-off-by: Maxim Devaev <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions