gpt4 book ai didi

org.jvnet.solaris.libzfs.ZFSFileSystem.getName()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 00:11:31 26 4
gpt4 key购买 nike

本文整理了Java中org.jvnet.solaris.libzfs.ZFSFileSystem.getName()方法的一些代码示例,展示了ZFSFileSystem.getName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZFSFileSystem.getName()方法的具体详情如下:
包路径:org.jvnet.solaris.libzfs.ZFSFileSystem
类名称:ZFSFileSystem
方法名:getName

ZFSFileSystem.getName介绍

暂无

代码示例

代码示例来源:origin: jenkinsci/jenkins

private static String computeHudsonFileSystemName(LibZFS zfs, ZFSFileSystem top) {
  if(!zfs.exists(top.getName()+"/hudson"))
    return top.getName()+"/hudson";
  for( int i=2; ; i++ ) {
    String name = top.getName() + "/hudson" + i;
    if(!zfs.exists(name))
      return name;
  }
}

代码示例来源:origin: jenkinsci/jenkins

@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");
    }
}

代码示例来源:origin: jenkinsci/jenkins

return existing.getName();
return hudson.getName();

代码示例来源:origin: org.hudsonci.plugins/jna-native-support-plugin

public String getName() {
  return zfsFileSystem.getName();
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

private static String computeHudsonFileSystemName(LibZFS zfs, ZFSFileSystem top) {
  if(!zfs.exists(top.getName()+"/hudson"))
    return top.getName()+"/hudson";
  for( int i=2; ; i++ ) {
    String name = top.getName() + "/hudson" + i;
    if(!zfs.exists(name))
      return name;
  }
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

private static String computeHudsonFileSystemName(LibZFS zfs, ZFSFileSystem top) {
  if(!zfs.exists(top.getName()+"/hudson"))
    return top.getName()+"/hudson";
  for( int i=2; ; i++ ) {
    String name = top.getName() + "/hudson" + i;
    if(!zfs.exists(name))
      return name;
  }
}

代码示例来源:origin: hudson/hudson-2.x

private static String computeHudsonFileSystemName(LibZFS zfs, ZFSFileSystem top) {
  if(!zfs.exists(top.getName()+"/hudson"))
    return top.getName()+"/hudson";
  for( int i=2; ; i++ ) {
    String name = top.getName() + "/hudson" + i;
    if(!zfs.exists(name))
      return name;
  }
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

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");
  }
});

代码示例来源:origin: hudson/hudson-2.x

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");
  }
});

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

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");
  }
});

代码示例来源:origin: org.kohsuke/libzfs

public static void main(String[] args) {
    LibZFS zfs = new LibZFS();
    for (ZFSFileSystem fs : zfs.roots()) {
      System.out.println(fs.getName());
      for (ZFSFileSystem c : fs.children(ZFSFileSystem.class)) {
        System.out.println(c.getName());
      }
    }
  }
}

代码示例来源:origin: org.kohsuke/libzfs

/**
 * 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());
  }
}

代码示例来源:origin: org.jvnet.libzfs/libzfs

/**
 * 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());
}

代码示例来源:origin: org.jvnet.libzfs/libzfs

/**
 * 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());
  }
}

代码示例来源:origin: org.kohsuke/libzfs

/**
 * 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);
}

代码示例来源:origin: hudson/hudson-2.x

return existing.getName();
return hudson.getName();

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

return existing.getName();
return hudson.getName();

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

return existing.getName();
return hudson.getName();

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com