mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
basic msd rw api
This commit is contained in:
@@ -93,7 +93,12 @@ class MsdMultiNotSupported(MsdOperationError):
|
||||
|
||||
class MsdCdromNotSupported(MsdOperationError):
|
||||
def __init__(self) -> None:
|
||||
super().__init__("This MSD does not support CD-ROM emulation")
|
||||
super().__init__("This MSD does not support CD-ROM switching")
|
||||
|
||||
|
||||
class MsdRwNotSupported(MsdOperationError):
|
||||
def __init__(self) -> None:
|
||||
super().__init__("This MSD does not support RW switching")
|
||||
|
||||
|
||||
# =====
|
||||
@@ -114,7 +119,13 @@ class BaseMsd(BasePlugin):
|
||||
|
||||
# =====
|
||||
|
||||
async def set_params(self, name: Optional[str]=None, cdrom: Optional[bool]=None) -> None:
|
||||
async def set_params(
|
||||
self,
|
||||
name: Optional[str]=None,
|
||||
cdrom: Optional[bool]=None,
|
||||
rw: Optional[bool]=None,
|
||||
) -> None:
|
||||
|
||||
raise NotImplementedError()
|
||||
|
||||
async def set_connected(self, connected: bool) -> None:
|
||||
|
||||
Reference in New Issue
Block a user