mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
new abstract method for volumepath
This commit is contained in:
@@ -114,8 +114,12 @@ const checkHealth = async (path: string, readOnly: boolean) => {
|
||||
}
|
||||
};
|
||||
|
||||
export const makeNfsBackend = (config: BackendConfig, path: string): VolumeBackend => ({
|
||||
export const makeNfsBackend = (config: BackendConfig, volumeName: string, path: string): VolumeBackend => ({
|
||||
mount: () => mount(config, path),
|
||||
unmount: () => unmount(path),
|
||||
checkHealth: () => checkHealth(path, config.readOnly ?? false),
|
||||
getVolumePath: () => path,
|
||||
isDatabaseBackend: () => false,
|
||||
getDumpPath: () => null,
|
||||
getDumpFilePath: () => null,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user