/** * Create ZFS File System corresponding to the mount name * * @param mountPoint * @return ZFS File System if created successfully * @throws hudson.util.jna.Native.NativeExecutionException */ public NativeZfsFileSystem createZfs(String mountName) throws NativeAccessException { ensureZfsSupport(NativeFunction.ZFS); return nativeZfsSupport.createZfs(mountName); }
/** * Check if the named ZFS exists * * @param zfsName * @return * @throws hudson.util.jna.Native.NativeExecutionException */ public boolean zfsExists(String zfsName) throws NativeAccessException { ensureZfsSupport(NativeFunction.ZFS); return nativeZfsSupport.zfsExists(zfsName); }
/** * Open the target ZFS File System * * @param mountPoint * @return ZFS File System if opened successfully * @throws hudson.util.jna.Native.NativeExecutionException */ public NativeZfsFileSystem openZfs(String target) throws NativeAccessException { ensureZfsSupport(NativeFunction.ZFS); return nativeZfsSupport.openZfs(target); }
/** * Fetch the list of mounted ZFS roots * * @return * @throws hudson.util.jna.Native.NativeExecutionException */ public List<NativeZfsFileSystem> getZfsRoots() throws NativeAccessException { ensureZfsSupport(NativeFunction.ZFS); return nativeZfsSupport.getZfsRoots(); }
/** * Find the ZFS File System by its mount point * * @return * @throws hudson.util.jna.Native.NativeExecutionException */ public NativeZfsFileSystem getZfsByMountPoint(File mountPoint) throws NativeAccessException { ensureZfsSupport(NativeFunction.ZFS); return nativeZfsSupport.getZfsByMountPoint(mountPoint); }