hudson.setProperty("sharesmb","on"); hudson.setProperty("sharenfs","on"); hudson.share(); } catch (ZFSException e) { listener.error("Failed to share the file systems: "+e.getCode());
public void share() { zfsFileSystem.share(); }
/** * Creates a clone from this snapshot. * * This method fails if this {@link ZFSObject} is not a snapshot. */ public ZFSFileSystem clone(String fullDestinationName) { if (LIBZFS.zfs_clone(handle, fullDestinationName, null) != 0) throw new ZFSException(library); ZFSFileSystem target = (ZFSFileSystem) library.open(fullDestinationName); // this behavior mimics "zfs clone" target.mount(); target.share(); return target; }
/** * Creates a clone from this snapshot. * * This method fails if this {@link ZFSObject} is not a snapshot. */ public ZFSFileSystem clone(String fullDestinationName) { if (LIBZFS.zfs_clone(handle, fullDestinationName, null) != 0) throw new ZFSException(library); ZFSFileSystem target = (ZFSFileSystem) library.open(fullDestinationName); // this behavior mimics "zfs clone" target.mount(); target.share(); return target; }
hudson.setProperty("sharesmb","on"); hudson.setProperty("sharenfs","on"); hudson.share(); } catch (ZFSException e) { listener.error("Failed to share the file systems: "+e.getCode());
hudson.setProperty("sharesmb","on"); hudson.setProperty("sharenfs","on"); hudson.share(); } catch (ZFSException e) { listener.error("Failed to share the file systems: "+e.getCode());
hudson.setProperty("sharesmb","on"); hudson.setProperty("sharenfs","on"); hudson.share(); } catch (ZFSException e) { listener.error("Failed to share the file systems: "+e.getCode());