@Override public Void invoke(File f, VirtualChannel channel) throws IOException { ZFSFileSystem fs = libzfs.getFileSystemByMountPoint(f); if(fs!=null) return null; // already on ZFS // nope. create a file system String fullName = rootDataset + '/' + name; listener.getLogger().println("Creating a ZFS file system "+fullName+" at "+f); fs = libzfs.create(fullName, ZFSFileSystem.class); fs.setMountPoint(f); fs.mount(); return null; } }
hudson.mount(); if(LIBC.chown(dir.getPath(),uid,gid)!=0) throw new IOException("Failed to chown "+dir);
/** * Mounts this file system. */ public void mount() { mount(0); }
/** * Mounts this file system. */ public void mount() { mount(0); }
public void mount() { zfsFileSystem.mount(); }
public Void invoke(File f, VirtualChannel channel) throws IOException { ZFSFileSystem fs = libzfs.getFileSystemByMountPoint(f); if(fs!=null) return null; // already on ZFS // nope. create a file system String fullName = rootDataset + '/' + name; listener.getLogger().println("Creating a ZFS file system "+fullName+" at "+f); fs = libzfs.create(fullName, ZFSFileSystem.class); fs.setMountPoint(f); fs.mount(); return null; } });
public Void invoke(File f, VirtualChannel channel) throws IOException { ZFSFileSystem fs = libzfs.getFileSystemByMountPoint(f); if(fs!=null) return null; // already on ZFS // nope. create a file system String fullName = rootDataset + '/' + name; listener.getLogger().println("Creating a ZFS file system "+fullName+" at "+f); fs = libzfs.create(fullName, ZFSFileSystem.class); fs.setMountPoint(f); fs.mount(); return null; } });
public Void invoke(File f, VirtualChannel channel) throws IOException { ZFSFileSystem fs = libzfs.getFileSystemByMountPoint(f); if(fs!=null) return null; // already on ZFS // nope. create a file system String fullName = rootDataset + '/' + name; listener.getLogger().println("Creating a ZFS file system "+fullName+" at "+f); fs = libzfs.create(fullName, ZFSFileSystem.class); fs.setMountPoint(f); fs.mount(); return null; } });
/** * 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.mount(); if(LIBC.chown(dir.getPath(),uid,gid)!=0) throw new IOException("Failed to chown "+dir);
hudson.mount(); if(LIBC.chown(dir.getPath(),uid,gid)!=0) throw new IOException("Failed to chown "+dir);
hudson.mount(); if(LIBC.chown(dir.getPath(),uid,gid)!=0) throw new IOException("Failed to chown "+dir);