/home/pdonnell/ceph/src/client/Client.cc:8575:13: warning: ‘void attr_set_atime_and_mtime(stat*, const utime_t&, const utime_t&)’ defined but not used [-Wunused-function]
8575 | static void attr_set_atime_and_mtime(struct stat *attr,
| ^~~~~~~~~~~~~~~~~~~~~~~~
Fixes: 8abccedd12a3d8dfb4fc926908ba7e2c1f94bf35
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
return _setattr(in, &attr, CEPH_SETATTR_UID|CEPH_SETATTR_GID, perms);
}
-static void attr_set_atime_and_mtime(struct stat *attr,
- const utime_t &atime,
- const utime_t &mtime)
-{
- stat_set_atime_sec(attr, atime.tv.tv_sec);
- stat_set_atime_nsec(attr, atime.tv.tv_nsec);
- stat_set_mtime_sec(attr, mtime.tv.tv_sec);
- stat_set_mtime_nsec(attr, mtime.tv.tv_nsec);
-}
-
// for [l]utime() invoke the timeval variant as the timespec
// variant are not yet implemented. for futime[s](), invoke
// the timespec variant.