On Wed, 2006-02-01 at 20:04 +0100, Ingo wrote: > I got an annoying problem with accessing files on a JFS partitition: > > Partitition was created under OS/2's JFS and also filled with data under OS/2. > I have tested since long the compatibility of a JFS filesystem with OS/2 and > Linux: > Linux does not touch the EA's (extended attributes) created by OS/2 > OS/2 does not touch UID and GID and access rights created by Linux. > So achtually all should be fine - and I never lost any data, but: > > When I mount such a partitition under Linux, all the files written by OS/2 do > not have any acces rights assigned and the owner is 'root' and group is > 'root'. > I have placed the mount-options in FSTAB for /dev/hda11 this way: > noauto,user,suid > this does allow the mounting and umounting by me working as a 'user', > but I do not have any rights to access the files (those with no attributes). > The only way is to open a root-terminal and issue > chmod -R 777 <mountpoint> > chown -R ingo <mountpoint> > (<mountpoint> is the directory where the partitition is mounted to, ingo is > my user name). > > This information is then written to the filesystem and becomes persistant. > But whenever I add a new file under OS/2, I first have to become root and > assigne the rights as above. > Unfortunately Linux-JFS does not accept the mount-options > uid, gid, umask=... added in the FSTAB, so it is very inconveniant to > exchange files between the two operating systems. > > Does anybody know how to solve this dilemma - seems to be Linux-related?
I've considered implementing the uid, gid and umask parameters in the past, but to be honest, there really hasn't been anybody complaining that they are missing. I don't think there are very many users out there actually switching between linux & os/2. The chmod workaround is probably sufficient for most users. If I were to implement uid, gid & umask, would it make sense to only replace use these values when uid = gid = permissions = 0, or should it override them no matter what is stored in the inode? Would you be interested in testing a kernel patch? If so, what level of kernel are you running? > Best regards, > Ingo -- David Kleikamp IBM Linux Technology Center ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Jfs-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jfs-discussion
