diff options
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/features/marker/src/marker.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index 47ce20f861a..f6302247e5e 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -1002,14 +1002,11 @@ call_from_sp_client_to_reset_tmfile (call_frame_t *frame, if (data->len == 0 || (data->len == 5 && memcmp (data->data, "RESET", 5) == 0)) { - fd = open (priv->timestamp_file, O_WRONLY); + fd = open (priv->timestamp_file, O_WRONLY|O_TRUNC); if (fd != -1) { - /* this call is needed because of the unsurity - * whether the O_TRUNC would update the timestamps - * on a zero length file as well. Hence updating it - * manually. + /* TODO check whether the O_TRUNC would update the + * timestamps on a zero length file on all machies. */ - futimens (fd, NULL); close (fd); } |