Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PFTool does not preserve directory mode when copying #46

Closed
wfvining opened this issue Oct 12, 2016 · 1 comment
Closed

PFTool does not preserve directory mode when copying #46

wfvining opened this issue Oct 12, 2016 · 1 comment
Assignees

Comments

@wfvining
Copy link
Contributor

Dave mentioned this yesterday, and I can confirm that pftool does not preserve directory permissions on the destination when copying. The destination directories always have the mode 0700. This is true whether copying from POSIX to POSIX or from POSIX to MarFS. For example:

$ umask
0002
$ ls -la ./perm_test
total 1056
drwxr----x  2 wfvining wfvining   4096 Oct 12 12:41 td
-rw-r-----  1 wfvining wfvining 262144 Oct 12 10:38 sf.4
-rw-r-----  1 wfvining wfvining 262144 Oct 12 10:38 sf.3
-rw-r-----  1 wfvining wfvining 262144 Oct 12 10:38 sf.2
-rw-r-----  1 wfvining wfvining 262144 Oct 12 10:38 sf.1
drwxr-xr-x 28 wfvining wfvining   8192 Oct 12 12:42 ..
drwxr-----  3 wfvining wfvining   4096 Oct 12 12:41 .
$ mpirun -np 4 pftool -w 0 -r -p `pwd`/perm_test -c `pwd`/perm_test2
[...]
$ ls -la ./perm_test2
total 1056
drwx------  3 wfvining wfvining   4096 Oct 12 12:42 .
drwxr-xr-x 28 wfvining wfvining   8192 Oct 12 12:42 ..
-rw-r-----  1 wfvining wfvining 262144 Oct 12 10:38 sf.1
-rw-r-----  1 wfvining wfvining 262144 Oct 12 10:38 sf.2
-rw-r-----  1 wfvining wfvining 262144 Oct 12 10:38 sf.3
-rw-r-----  1 wfvining wfvining 262144 Oct 12 10:38 sf.4
drwx------  2 wfvining wfvining   4096 Oct 12 12:42 td

(Note: the default behavior of cp is to preserve the directory mode on the destination.)

@cadejager
Copy link
Contributor

This issue has been resolved by commit 003a802

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants