private String createZfsFileSystem(final TaskListener listener, String rootUsername, String rootPassword) throws IOException, InterruptedException, ZFSException {
final int uid = LIBC.geteuid();
final int gid = LIBC.getegid();
passwd pwd = LIBC.getpwuid(uid);
if(pwd==null)
throw new IOException("Failed to obtain the current user information for "+uid);
final String userName = pwd.pw_name;
final File home = Jenkins.getInstance().getRootDir();
return SU.execute(listener, rootUsername, rootPassword, new Create(listener, home, uid, gid, userName));
}
private static class Create extends MasterToSlaveCallable<String, IOException> {