Darren Reed wrote on Tue Jul 21 2009 21:57:54 GMT-0700 (PDT) : > On 21/07/09 04:41 PM, James Walker wrote: >> ... >> List of 'Faked' Functions >> ------------------------- >> open, fopen, freopen, openat, lstat, stat, fstat, fstatat, lstat64, >> stat64, >> fstat64, fstatat64, chown, lchown, fchown, fchownat, chmod, fchmod, >> mknod, mkdir, unlink, unlinkat, rmdir, remove, rename, renameat, >> getuid, getgid, geteuid, getegid, setuid, setgid, seteuid, setegid, >> setreuid, setregid > > How aware of the filesystem underneath is fakeroot? > Is it limited to tmpfs/UFS/ZFS? > > For example... > > If I execute chown(2) from within a fakeroot'd program that > is trying to change the ownership of a file on a CD, > will fakeroot make it appear as if it worked? > Can I make it appear as if I can rename files on a CD? > etc.
I don't think so. I didn't test the cdrom case, but I tried to chown a file on NFS which root didn't have permissions to chown. The fakeroot'ed process failed to chown with the same error the real root process failed with. I assume the same will be true for files on a CD. -Ravindra. > ... the man page gives me no indication of whether or not it > respects filesystem properties (which not even root can > over ride unless the filesystem is remounted.) > > Darren