]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix snapshot directory timestamps
authorLuis Henriques <lhenriques@suse.com>
Wed, 11 Mar 2020 11:05:38 +0000 (11:05 +0000)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 30 Mar 2020 10:42:43 +0000 (12:42 +0200)
commitb4c9adbfbf5fc34e2661e3cfcfc934f218ca1013
treedc447f48fd161d3a35069631817f5ede6f0d3247
parent4f0af727ae1c05ad6c1896e05ccd415d68343ad3
ceph: fix snapshot directory timestamps

The .snap directory timestamps are kept at 0 (1970-01-01 00:00), which
isn't consistent with what the fuse client does.  This patch makes the
behaviour consistent, by setting these timestamps (atime, btime, ctime,
mtime) to those of the parent directory.

Cc: Marc Roos <M.Roos@f1-outsourcing.eu>
Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/inode.c