From patchwork Tue Apr 16 17:26:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Disseldorp X-Patchwork-Id: 10903571 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 9DB7E17E0 for ; Tue, 16 Apr 2019 17:26:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84D6C28820 for ; Tue, 16 Apr 2019 17:26:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79634289DD; Tue, 16 Apr 2019 17:26:49 +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 3504228820 for ; Tue, 16 Apr 2019 17:26:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728732AbfDPR0m (ORCPT ); Tue, 16 Apr 2019 13:26:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:44604 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726230AbfDPR0m (ORCPT ); Tue, 16 Apr 2019 13:26:42 -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 10192AB5F; Tue, 16 Apr 2019 17:26:41 +0000 (UTC) From: David Disseldorp To: ceph-devel@vger.kernel.org Cc: Patrick Donnelly , Ilya Dryomov , Gregory Farnum , ukernel@gmail.com Subject: [PATCH v2 0/5] ceph: add snapshot creation time vxattr Date: Tue, 16 Apr 2019 19:26:01 +0200 Message-Id: <20190416172606.26037-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 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(-)