@Override public String invoke(File f, VirtualChannel channel) throws IOException { ZFSFileSystem fs = libzfs.getFileSystemByMountPoint(f); if(fs!=null) return fs.getName(); // TODO: for now, only support agents that are already on ZFS. throw new IOException("Not on ZFS"); } }
public String getName() { return zfsFileSystem.getName(); }
public String invoke(File f, VirtualChannel channel) throws IOException { ZFSFileSystem fs = libzfs.getFileSystemByMountPoint(f); if(fs!=null) return fs.getName(); // TODO: for now, only support agents that are already on ZFS. throw new IOException("Not on ZFS"); } });
public String invoke(File f, VirtualChannel channel) throws IOException { ZFSFileSystem fs = libzfs.getFileSystemByMountPoint(f); if(fs!=null) return fs.getName(); // TODO: for now, only support slaves that are already on ZFS. throw new IOException("Not on ZFS"); } });
public String invoke(File f, VirtualChannel channel) throws IOException { ZFSFileSystem fs = libzfs.getFileSystemByMountPoint(f); if(fs!=null) return fs.getName(); // TODO: for now, only support slaves that are already on ZFS. throw new IOException("Not on ZFS"); } });
/** * Unmounts this file system. * * @param flags * See {@link MountFlags}. */ public void unmount(int flags) { if (LIBZFS.zfs_unmount(handle, null, flags) != 0) { throw new ZFSException(library,"Failed to unmount "+getName()); } }
/** * Mounts this file system. * * @param flags * See {@link MountFlags}. */ public void mount(int flags) { if (LIBZFS.zfs_mount(handle, null, flags) != 0) throw new ZFSException(library,"Failed to mount "+getName()); }
/** * Unmounts this file system. * * @param flags * See {@link MountFlags}. */ public void unmount(int flags) { if (LIBZFS.zfs_unmount(handle, null, flags) != 0) { throw new ZFSException(library,"Failed to unmount "+getName()); } }
/** * Mounts this file system. * * @param flags * See {@link MountFlags}. */ public void mount(int flags) { int r = LIBZFS.zfs_mount(handle, null, flags); if (r != 0) throw new ZFSException(library,"Failed to mount "+getName()+": code="+r); }