aboutsummaryrefslogtreecommitdiff
path: root/Documentation/filesystems/configfs/configfs_example.c
diff options
context:
space:
mode:
authorMichael Kerrisk <[email protected]>2008-06-09 21:16:05 -0700
committerAl Viro <[email protected]>2008-06-23 08:43:04 -0400
commit94c70b9ba7e9c1036284e779e2fef5be89021533 (patch)
treeae304528dfe2f31d21380e98d7575e43797b75d8 /Documentation/filesystems/configfs/configfs_example.c
parent12fd0d3088d27867be68655bcab2b074f2835f60 (diff)
[patch for 2.6.26 1/4] vfs: utimensat(): ignore tv_sec if tv_nsec == UTIME_OMIT or UTIME_NOW
The POSIX.1 draft spec for utimensat() says that if a times[n].tv_nsec field is UTIME_OMIT or UTIME_NOW, then the value in the corresponding tv_sec field is ignored. See the last sentence of this para, from the spec: If the tv_nsec field of a timespec structure has the special value UTIME_NOW, the file's relevant timestamp shall be set to the greatest value supported by the file system that is not greater than the current time. If the tv_nsec field has the special value UTIME_OMIT, the file's relevant timestamp shall not be changed. In either case, the tv_sec field shall be ignored. However the current Linux implementation requires the tv_sec value to be zero (or the EINVAL error results). This requirement should be removed. Acked-by: Miklos Szeredi <[email protected]> Cc: Al Viro <[email protected]> Cc: Ulrich Drepper <[email protected]> Signed-off-by: Michael Kerrisk <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'Documentation/filesystems/configfs/configfs_example.c')
0 files changed, 0 insertions, 0 deletions