File dir = Util.createTempDir();
hudson.setMountPoint(dir);
hudson.mount();
if(LIBC.chown(dir.getPath(),uid,gid)!=0)
throw new IOException("Failed to chown "+dir);
hudson.unmount();
try {
hudson.setProperty("hudson:managed-by","hudson"); // mark this file system as "managed by Hudson"
ACLBuilder acl = new ACLBuilder();