ceph: fix snapshot directory timestamps ceph-for-5.7-rc1
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)
commitef9157259fb7bb3bc2c61df227e36f1b861a4753
treedc447f48fd161d3a35069631817f5ede6f0d3247
parent9bccb76574ad9ba6f5868b09053179fa2e72f8e0
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