Frank Filz has uploaded this change for review.

View Change

FSAL: Make sure the exclusive create verifier fits

For FSAL_VFS, some filesystems may not allow a full 32 bit atime or mtime.
If this happens and the value is truncated or clamped (set to INT32_MAX),
then try again masking off each 32 bit component to just be 31 bits. We
set a flag in the fsal_filesystem in the future, all verifiers will be
truncated in this way which also assures that the validation of the
verifier works correctly.

Change-Id: I0283fffcde0ef40313eaa657560802a5f77b3549
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
---
M src/FSAL/FSAL_CEPH/handle.c
M src/FSAL/FSAL_GLUSTER/handle.c
M src/FSAL/FSAL_GPFS/file.c
M src/FSAL/FSAL_KVSFS/kvsfs_file.c
M src/FSAL/FSAL_LIZARDFS/handle.c
M src/FSAL/FSAL_MEM/mem_handle.c
M src/FSAL/FSAL_RGW/handle.c
M src/FSAL/FSAL_VFS/file.c
M src/FSAL/commonlib.c
M src/FSAL/default_methods.c
M src/include/FSAL/fsal_commonlib.h
M src/include/FSAL/fsal_localfs.h
12 files changed, 113 insertions(+), 30 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/11/525711/1

To view, visit change 525711. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I0283fffcde0ef40313eaa657560802a5f77b3549
Gerrit-Change-Number: 525711
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Filz <ffilzlnx@mindspring.com>
Gerrit-MessageType: newchange