From 487aaafacac8af16c08eb44fe9bf178768d372fa Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Mon, 30 Apr 2018 04:43:58 -0400 Subject: utime: ctime client side xlator The client side utime xlator does two things. 1. Update unix epoch time in frame->root->ctime 2. Update the frame->root->flags based on the fop which indicates time attributes that should be updated for the parent/entry. Credits: Rafi KC Updates: #208 Change-Id: I9cad297040c70798a0a8468a080eb4aeff73138d Signed-off-by: Kotresh HR --- xlators/features/utime/src/utime-helpers.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 xlators/features/utime/src/utime-helpers.h (limited to 'xlators/features/utime/src/utime-helpers.h') diff --git a/xlators/features/utime/src/utime-helpers.h b/xlators/features/utime/src/utime-helpers.h new file mode 100644 index 00000000000..f526aecb063 --- /dev/null +++ b/xlators/features/utime/src/utime-helpers.h @@ -0,0 +1,24 @@ +/* + Copyright (c) 2018 Red Hat, Inc. + This file is part of GlusterFS. + + This file is licensed to you under your choice of the GNU Lesser + General Public License, version 3 or any later version (LGPLv3 or + later), or the GNU General Public License, version 2 (GPLv2), in all + cases as published by the Free Software Foundation. +*/ + +#ifndef _UTIME_HELPERS_H +#define _UTIME_HELPERS_H + +#include "glusterfs-fops.h" +#include "stack.h" +#include "timespec.h" +#include + +void +gl_timespec_get (struct timespec *ts); +void +utime_update_attribute_flags(call_frame_t *frame, glusterfs_fop_t fop); + +#endif /* _UTIME_HELPERS_H */ -- cgit