@Override public boolean zfsExists(String zfsName) throws NativeAccessException { return zfs.exists(zfsName); }
/** * Does a zfs dataset of the given name and the given type exist? * * @param dataSetName * the dataset name of check for. * @param type * the specific zfs type to check for. * @return does the dataset exist? */ public boolean exists(final String dataSetName, final ZFSType type) { final boolean exists = exists(dataSetName, EnumSet.of(type)); return exists; }
/** * Does a zfs dataset of the given name exist? * * @param dataSetName * the dataset name of check for. * @return does the dataset exist? */ public boolean exists(final String dataSetName) { final boolean exists = exists(dataSetName, EnumSet.allOf(ZFSType.class)); return exists; }
/** * Does a zfs dataset of the given name exist? * * @param dataSetName * the dataset name of check for. * @return does the dataset exist? */ public boolean exists(final String dataSetName) { final boolean exists = exists(dataSetName, EnumSet.allOf(ZFSType.class)); return exists; }
/** * Does a zfs dataset of the given name and the given type exist? * * @param dataSetName * the dataset name of check for. * @param type * the specific zfs type to check for. * @return does the dataset exist? */ public boolean exists(final String dataSetName, final ZFSType type) { final boolean exists = exists(dataSetName, EnumSet.of(type)); return exists; }
for (int i = 1; i < dirs.length; i++) { sb.append('/').append(dirs[i]); if (!exists(sb.toString())) { if (LIBZFS.zfs_create(handle, sb.toString(), type.code, nvl) != 0) { throw new ZFSException(this,"Failed to create "+dataSetName);
for (int i = 1; i < dirs.length; i++) { sb.append('/').append(dirs[i]); if (!exists(sb.toString())) { if (LIBZFS.zfs_create(handle, sb.toString(), type.code, nvl) != 0) { throw new ZFSException(this,"Failed to create "+dataSetName);