hudson.share(); } catch (ZFSException e) { listener.error("Failed to share the file systems: "+e.getCode());
private void check(int r) { if(r!=0) throw new ZFSException(library); }
private void check(int r) { if(r!=0) throw new ZFSException(library); }
/** * Share this dataset. */ public void share() { if (LIBZFS.zfs_share(handle) != 0) { throw new ZFSException(library); } }
if(ze.getCode()==ErrorCode.EZFS_PERM) {
/** * Share this dataset. */ public void share() { if (LIBZFS.zfs_share(handle) != 0) { throw new ZFSException(library); } }
hudson.share(); } catch (ZFSException e) { listener.error("Failed to share the file systems: "+e.getCode());
/** * Share this dataset. */ public void shareISCSI() { if (LIBZFS.zfs_share_iscsi(handle) != 0) { throw new ZFSException(library); } }
hudson.share(); } catch (ZFSException e) { listener.error("Failed to share the file systems: "+e.getCode());
/** * Unshare this dataset. */ public void unshareISCSI() { if (LIBZFS.zfs_unshare_iscsi(handle) != 0) { throw new ZFSException(library); } }
hudson.share(); } catch (ZFSException e) { listener.error("Failed to share the file systems: "+e.getCode());
/** * Unshare this dataset. */ public void unshare() { if (LIBZFS.zfs_unshare(handle) != 0) { throw new ZFSException(library); } } }
if(ze.getCode()==ErrorCode.EZFS_PERM) {
ZFSObject(final LibZFS library, final zfs_handle_t handle) { this.library = library; if (handle == null) { throw new ZFSException(library); } this.handle = handle; this.name = LIBZFS.zfs_get_name(this.handle); }
if(ze.getCode()==ErrorCode.EZFS_PERM) {
ZFSObject(final LibZFS library, final zfs_handle_t handle) { this.library = library; if (handle == null) { throw new ZFSException(library); } this.handle = handle; this.name = LIBZFS.zfs_get_name(this.handle); }
if(ze.getCode()==ErrorCode.EZFS_PERM) {
/** * Unshare this dataset. */ public void unshare() { if (LIBZFS.zfs_unshare(handle) != 0) { throw new ZFSException(library); } } }
/** * Wipes out the dataset and all its data. Very dangerous. * * <p> * If this dataset contains nested datasets, this method fails with * {@link ErrorCode#EZFS_EXISTS}. */ public void destory() { if (LIBZFS.zfs_destroy(handle) != 0) throw new ZFSException(library,"Failed to destroy "+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()); } }