Hi all, this is a problem observed in btrfs-0.15:
Using 'cp -p', 'cp -a', or moving files to btrfs from another filesystem
(which does a copy then remove) will leave the copied files with the
wrong mode. Specifically, all permissions for 'group' or 'other' are
nulled out. My umask is the typical 0022, but umask should not matter
here anyway (to make sure I wasn't crazy, I tried it on an ext3 partition).
The simplest example is:
touch bar
cp -p bar foo
Doing 'ls -l bar foo' yields:
-rw-r--r-- 1 joe skyrush 0 Jun 2 17:38 bar
-rw------- 1 joe skyrush 0 Jun 2 17:38 foo
For directories, if they used to have mode 755, the copies will then
have mode 700.
I first noticed this when moving dirs from another partition, but
'cp -a', of course, demonstrated it as well.
I do not know the btrfs code well yet, but I am willing to help
investigate this, especially of someone points me to the right place to
start looking. :)
-Thanks, Joe
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html