Closed tonyhutter closed 3 years ago
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
./test_basic_xfer 1 /p/gpfs1/hutter2/dst 1024
run on a compute node?
What is the umask on the node with bbserver?
Yes, it was run on the compute node. umask was:
# Check umask
$ umask -S
u=rwx,g=rwx,o=rwx
@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:
u=rwx,g=rx,o=rx
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?
The process umask on bbServer process is 027 by the default service definition. This affects the ugo bits on any freshly created target file.
The umask can be changed in the bbserver service definition by an administrator. For reference, I had checked like this:
grep -i umask /usr/lib/systemd/system/bbserver.service
UMask=0027
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: