java.lang.Object
com.sshtools.volman.core.impl.BasicLinuxMountProvider
- All Implemented Interfaces:
Component,MountProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongvoidinit(ManagerContext context, javax.json.JsonObject configuration) booleanmount(Volume volume, Optional<FileSystemType> type, long owner) void
-
Constructor Details
-
BasicLinuxMountProvider
public BasicLinuxMountProvider()
-
-
Method Details
-
format
public UndoableResult<FileSystemType> format(Volume volume, Optional<FileSystemType> type, String label, String uuid) throws IOException - Specified by:
formatin interfaceMountProvider- Throws:
IOException
-
getFree
- Specified by:
getFreein interfaceMountProvider- Throws:
IOException
-
getSize
- Specified by:
getSizein interfaceMountProvider- Throws:
IOException
-
init
-
isMounted
- Specified by:
isMountedin interfaceMountProvider
-
mount
public UndoableResult<Void> mount(Volume volume, Optional<FileSystemType> type, long owner) throws IOException - Specified by:
mountin interfaceMountProvider- Throws:
IOException
-
unmount
- Specified by:
unmountin interfaceMountProvider- Throws:
IOException
-
getLabel
- Specified by:
getLabelin interfaceMountProvider- Throws:
IOException
-