From patchwork Tue Nov 4 14:34:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Spray X-Patchwork-Id: 5228141 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9E04DC11AC for ; Tue, 4 Nov 2014 14:35:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D5428201BC for ; Tue, 4 Nov 2014 14:35:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0482720166 for ; Tue, 4 Nov 2014 14:35:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753663AbaKDOfX (ORCPT ); Tue, 4 Nov 2014 09:35:23 -0500 Received: from mail-wg0-f45.google.com ([74.125.82.45]:35570 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754165AbaKDOfS (ORCPT ); Tue, 4 Nov 2014 09:35:18 -0500 Received: by mail-wg0-f45.google.com with SMTP id x12so13779929wgg.18 for ; Tue, 04 Nov 2014 06:35:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Hrv1LIyqx0DQIXKNz12CXbcG33BnbXb74luVAaL0t/A=; b=T/ERSChfx8lYMVFWSnRBTAAkmM7QoSav8Mr04U2V+8scJx5KN/OC3SGgv6dbC09Fcd bL1YWC/U8jRfE8mnH1tWOK88ys/EEsW+pRcjc6B7+xpRSWimQyosplAZiPNuFYoitI4Q exLYGfZzC/zv/Ng7nC2sZ04oLldG2Xv0sWzEBPasBzQam1iAqbIDGvJX7Hvy0UXn92qq 6PcoEnO2L68KF7A8Q+ZZ1T0nTacrIGYqnezFKTVQ63N7EKmC7tzlpUKz7NRoFdrhIzRa msxyiKw10AdbLWRJldUUf3g6Yg0CAhAi1VkITK5kuW06s8qJvOXicMKINa2MSYqCTV6x 8/AQ== X-Gm-Message-State: ALoCoQmieAXm3TpDNo4rvk35I+4GO4ncBaDAwYAJFcX+ttqhA+Wn9F2RJm3OBoyTnidleZmEOdvF X-Received: by 10.180.219.66 with SMTP id pm2mr25147450wic.5.1415111717527; Tue, 04 Nov 2014 06:35:17 -0800 (PST) Received: from anthracite.localdomain (82-71-55-202.dsl.in-addr.zen.co.uk. [82.71.55.202]) by mx.google.com with ESMTPSA id w5sm1229004wif.18.2014.11.04.06.35.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Nov 2014 06:35:16 -0800 (PST) From: John Spray To: ceph-devel@vger.kernel.org Cc: John Spray Subject: [PATCH 7/7] ceph: include osd epoch barrier in debugfs Date: Tue, 4 Nov 2014 14:34:29 +0000 Message-Id: <1415111669-26246-8-git-send-email-john.spray@redhat.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1415111669-26246-1-git-send-email-john.spray@redhat.com> References: <1415111669-26246-1-git-send-email-john.spray@redhat.com> Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is useful in our automated testing, so that we can verify that the barrier is propagating correctly between servers and clients. Signed-off-by: John Spray --- fs/ceph/debugfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c index 5d5a4c8..60db629 100644 --- a/fs/ceph/debugfs.c +++ b/fs/ceph/debugfs.c @@ -174,6 +174,9 @@ static int mds_sessions_show(struct seq_file *s, void *ptr) /* The -o name mount argument */ seq_printf(s, "name \"%s\"\n", opt->name ? opt->name : ""); + /* The latest OSD epoch barrier known to this client */ + seq_printf(s, "osd_epoch_barrier \"%d\"\n", mdsc->cap_epoch_barrier); + /* The list of MDS session rank+state */ for (mds = 0; mds < mdsc->max_sessions; mds++) { struct ceph_mds_session *session =