-
Notifications
You must be signed in to change notification settings - Fork 34
Should BB API preserve permissions & xattrs to destination file #981
Comments
Another observation: if you create the destination file in advance of transferring it, it will preserve the permissions of the destination file. That is, the transfer doesn't change the permission bits on the destination file if the destination file already exists. |
Yes, it should be non-extended ACL preserving in both transfer directions. We'll try to recreate with the current software. (as far as extended attributes, my understanding those were disabled in your PFS config) |
Was |
Yes, it was run on the compute node. umask was:
|
@meahoibm sorry, I gave you the umask on the compute node, not the bbserver node. Let me see if I can get that info... |
The bbserver umask is: I would think the bbserver's umask shouldn't make a difference though, as I'm copying existing files, not creating new ones. |
Just wanted the umask as an environment consideration in looking at the burst buffer code handling of the copy execution. I would expect rwx/ugo preservation on copy. |
The umask we have on our system for bash/terminal session is 022. When I cp a file in my home directory with rwxrwxrwx to /tmp or to GPFS the file changes to rwxr-xr-x if not pre-existing. Do you encounter the same? |
Ok, I was unaware of the umask setting in /usr/lib/systemd/system/bbserver.service. That would match the results I'm seeing. Thanks for the help. Closing issue |
Describe the bug
Should the BB API preserve permissions and xattrs on the files it's transferring?
I used your
test_basic_xfer
utility to copy a file on the burst buffer withO777
permissions, and xattr "hello=world" set, to its destination on GPFS (with umask set to u=rwx,g=rwx,o=rwx). After the transfer the destination file wasO750
, notO777
, and the xattr was not set.To Reproduce
Make this change:
Then:
Expected behavior
?
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Issue Source:
The text was updated successfully, but these errors were encountered: