From patchwork Sun May 20 06:33:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve French X-Patchwork-Id: 917033 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-cifs-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="uopctpCf"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40pXDh3wgrz9s4V for ; Sun, 20 May 2018 16:33:56 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750873AbeETGdz (ORCPT ); Sun, 20 May 2018 02:33:55 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:44259 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750742AbeETGdy (ORCPT ); Sun, 20 May 2018 02:33:54 -0400 Received: by mail-pg0-f68.google.com with SMTP id c22-v6so4324886pgn.11 for ; Sat, 19 May 2018 23:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YkCj6oKcT8jH975a9NGAWjOCDK5lKaSVg7Dk7hiZd78=; b=uopctpCfXmWndb1l3G4pr3O2Qzigp8HtjBmlkB1Oz5AHwW83kPw9MCpm17y7jNZOTF noIoBF+Rhy7kPXilHkVzTKHB+2MnGy0RsFqV3A+zJgFivTAF1bN9S6FhOLUu9cmdTN4c t99jsL3P1kANJtKCKHwkuWGkECkc99eeLw5l8+/c7ft7CCwToj44VZcoPwDmDyWnRODg BOh1klQb0Q+24yzuVwrJyIIr+XkGy4PZuChpW5Hs5hCqpfaxCbhMtg7T0zmS0jTqfhON 4dV86au9qj01Aq9owyKv6siw49eed1vV4ofvZs7BXoMpxoxjjIoRyb3aNsGW2R9DktjZ WkYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YkCj6oKcT8jH975a9NGAWjOCDK5lKaSVg7Dk7hiZd78=; b=fNM6t7MEXFQKSOErnsi+BYjRUGEaq4+rPmx15i8tC7obJkYqymEnu2Hb5Zgn/Rox90 VrWQ1wv3vOUSh2/48YspwcMO3AjqF1Hlr+8B3LxUK9cdILkhCZY5yhYLpwxtkPcBQ0FO 8NMumNttaevj94W1bu30sAWPKnkR9de97HszDPu87rIAni23GsELH182pno6VDgWPW3E Ye3toFKKdG037/ozTUG8GTYs8sZ6/zK9rUWqfQFbOp/gtk1dQgr6lnrFLe+4OVs8YPfj cwVXwVERBE6wg+4KkMmOps09Ey02h2259q6DA3dkujKOUxT/3w9oB39tfQSaiLgmaP8b Db8Q== X-Gm-Message-State: ALKqPwf9/J8WhvF0uSmoL3ZTXqrpmNfEWzKq3/VB6gxxcktkruXTGRtg se4TI948lxM9qLJNVrOcCn+c5pyP8Js7Ujp7FM6KntZe X-Google-Smtp-Source: AB8JxZpzbPW98MEUwJE8aNpP9cWon2DYfOLFZOjHPza3vNDtp/AsqNGqYZ/RETDBV13FN7QCEF21Ja1htbifFMaxe5Y= X-Received: by 2002:a63:721e:: with SMTP id n30-v6mr3116909pgc.30.1526798033569; Sat, 19 May 2018 23:33:53 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:bd8f:0:0:0:0 with HTTP; Sat, 19 May 2018 23:33:33 -0700 (PDT) From: Steve French Date: Sun, 20 May 2018 01:33:33 -0500 Message-ID: Subject: [PATCH][SMB3] update info printed for each tree id in /proc/fs/cifs/DebugData To: CIFS Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org print tree id in debugdata in proc to be able to help logging When loooking at the logs for the new trace-cmd tracepoints for cifs, it would help to know which tid is for which share (UNC name) so update /proc/fs/cifs/DebugData to display the tid (which was missing in output before). Also display Maximal Access which was missing as well. Now the entry for typical entry for a tcon (in proc/fs/cifs/) looks like: 1) \\localhost\test Mounts: 1 DevInfo: 0x20 Attributes: 0x1006f PathComponentMax: 255 Status: 1 type: DISK Share Capabilities: None Aligned, Partition Aligned, Share Flags: 0x0 tid: 0xe0632a55 Optimal sector size: 0x200 Maximal Access: 0x1f01ff Signed-off-by: Steve French --- fs/cifs/smb2ops.c | 2 ++ 1 file changed, 2 insertions(+) static void diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index f0ae47e69cb3..7c0edd2ab784 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -748,9 +748,11 @@ smb2_dump_share_caps(struct seq_file *m, struct cifs_tcon *tcon) seq_puts(m, " TRIM-support,"); seq_printf(m, "\tShare Flags: 0x%x", tcon->share_flags); + seq_printf(m, "\n\ttid: 0x%x", tcon->tid); if (tcon->perf_sector_size) seq_printf(m, "\tOptimal sector size: 0x%x", tcon->perf_sector_size); + seq_printf(m, "\tMaximal Access: 0x%x", tcon->maximal_access); }