Directory ownerships

Magnus Lindström lindstrm at s3.kth.se
Fri Jul 21 20:38:51 CEST 2000



Hi,

I've been using the 20000204 snapshot for a long time. A few days ago,
2000-07-14, I grabbed more recent code from CVS. Now, when creating files
and directories, gids no longer become what I expect.

I saw in the changelog that xfs/linux/xfs_inodeops.c was modified to set
the gid for xfs_create, xfs_symlink and xfs_mkdir operations. The gid of
a newly created file or directory seems to always be root, not my default
group nor the gid of the parent directory. Is this the correct behaviour?

Running RedHat 6.1, lk 2.2.12 on an i686-system. The AFS-server is from
Transarc.

/magnus

gauss:~>groups
xfs
gauss:~>cd ~lindstrm/foo
gauss:~/foo>ls -la
total 13
drwx------   2 lindstrm xfs          2048 Jul 19 16:37 ./
drwxr-xr-x  75 lindstrm 10735       10240 Jul 19 16:21 ../
gauss:~/foo>mkdir bar
gauss:~/foo>ls -la
total 15
drwx------   3 lindstrm xfs          2048 Jul 19 16:38 ./
drwxr-xr-x  75 lindstrm 10735       10240 Jul 19 16:21 ../
drwx------   2 lindstrm root         2048 Jul 19 16:38 bar/
gauss:~/foo>cd /tmp/foo
gauss:/tmp/foo>ls -la
total 8
drwx------   2 lindstrm xfs          4096 Jul 19 16:37 ./
drwxrwxrwt  16 root     root         4096 Jul 19 16:29 ../
gauss:/tmp/foo>mkdir bar
gauss:/tmp/foo>ls -la
total 12
drwx------   3 lindstrm xfs          4096 Jul 19 16:38 ./
drwxrwxrwt  16 root     root         4096 Jul 19 16:29 ../
drwx------   2 lindstrm xfs          4096 Jul 19 16:38 bar/







More information about the Arla-drinkers mailing list