From patchwork Thu Apr 18 12:15:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Disseldorp X-Patchwork-Id: 10907159 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 187F31515 for ; Thu, 18 Apr 2019 12:16:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0324D28C0B for ; Thu, 18 Apr 2019 12:16:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EBD4028C0F; Thu, 18 Apr 2019 12:16:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B11428C0B for ; Thu, 18 Apr 2019 12:16:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388939AbfDRMQC (ORCPT ); Thu, 18 Apr 2019 08:16:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:51592 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388864AbfDRMQC (ORCPT ); Thu, 18 Apr 2019 08:16:02 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 31DCCAEEE; Thu, 18 Apr 2019 12:16:01 +0000 (UTC) From: David Disseldorp To: ceph-devel@vger.kernel.org Cc: Patrick Donnelly , Ilya Dryomov , Gregory Farnum , ukernel@gmail.com Subject: [PATCH v3 0/5] ceph: add snapshot creation time vxattr Date: Thu, 18 Apr 2019 14:15:44 +0200 Message-Id: <20190418121549.30128-1-ddiss@suse.de> X-Mailer: git-send-email 2.16.4 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset adds a "ceph.snap.btime" vxattr to snapshot files and directories, when run alongside an MDS that provides InodeStat v3 information as implemented in https://github.com/ceph/ceph/pull/27077 . Changes since v2: - fix ceph_vxattrcb_snap_btime_exists() Changes since v1: - add fix for listxattr vxattr buffer length calculations + this bug caused breakage for non-hidden exists_cb() vxattrs - rebase against current mainline ---------------------------------------------------------------- David Disseldorp (5): ceph: clean up ceph.dir.pin vxattr name sizeof() ceph: carry snapshot creation time with inodes ceph: add ceph.snap.btime vxattr ceph: fix listxattr vxattr buffer length calculation ceph: remove unused vxattr length helpers fs/ceph/inode.c | 1 + fs/ceph/mds_client.c | 8 +++ fs/ceph/mds_client.h | 1 + fs/ceph/super.c | 7 +-- fs/ceph/super.h | 3 +- fs/ceph/xattr.c | 126 ++++++++++++++++++++----------------------- 6 files changed, 71 insertions(+), 75 deletions(-)