From patchwork Thu Aug 12 22:46:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: NeilBrown X-Patchwork-Id: 12434385 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9BEAC4320A for ; Thu, 12 Aug 2021 22:51:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8C08F60EB2 for ; Thu, 12 Aug 2021 22:51:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238393AbhHLWwO (ORCPT ); Thu, 12 Aug 2021 18:52:14 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:33114 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237013AbhHLWwN (ORCPT ); Thu, 12 Aug 2021 18:52:13 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id BF9161FF3A; Thu, 12 Aug 2021 22:51:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1628808704; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yMjGWJMZOmKrtApgIYOF47KeiAV23NtZqDPvEm6p/Vg=; b=x1aZ2a2MNTYNKQqb3nVJURHIBmZz6ETb5i8qeZ918cksrKYzDU3+XBfGMJGnclztqgu5C9 XrOY1E73GjXskk7mhzr2DVsPlbJ8KvIqz1onuDtFaDLvKR1R2HwP2uMKYYVqq1czVzjYW7 B4v7zDn3kRNtgZ6UoNy4Yy6UX6bss1o= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1628808704; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yMjGWJMZOmKrtApgIYOF47KeiAV23NtZqDPvEm6p/Vg=; b=UvzNzAqGlEPHeyh94Ayh0+lzq3vP6L3LvSSN9Q7mT9g6AuNyQMNZEvTc9jfRIjQXCDLxoc Phq7zs08nW9vlhCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2EB6413C80; Thu, 12 Aug 2021 22:51:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id +LdzN/6lFWFuewAAMHmgww (envelope-from ); Thu, 12 Aug 2021 22:51:42 +0000 MIME-Version: 1.0 From: NeilBrown Date: Fri, 13 Aug 2021 08:46:47 +1000 Subject: [PATCH man-pages] statx.2: Add STATX_MNT_ID To: "Michael Kerrisk (man-pages)" Cc: linux-man@vger.kernel.org, linux-fsdevel@vger.kernel.org, Miklos Szeredi , Josef Bacik Message-id: <162880868648.15074.7283929646453264436@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Linux 5.8 adds STATX_MNT_ID and stx_mnt_id. Add description to statx.2 Signed-off-by: NeilBrown --- man2/statx.2 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/man2/statx.2 b/man2/statx.2 index 9e3aeaa36fa3..c41ee45f9bc4 100644 --- a/man2/statx.2 +++ b/man2/statx.2 @@ -77,6 +77,7 @@ struct statx { containing the filesystem where the file resides */ __u32 stx_dev_major; /* Major ID */ __u32 stx_dev_minor; /* Minor ID */ + __u64 stx_mnt_id; /* Mount ID */ }; .EE .in @@ -258,6 +259,7 @@ STATX_SIZE Want stx_size STATX_BLOCKS Want stx_blocks STATX_BASIC_STATS [All of the above] STATX_BTIME Want stx_btime +STATX_MNT_ID Want stx_mnt_id (since Linux 5.8) STATX_ALL [All currently available fields] .TE .in @@ -411,6 +413,13 @@ The device on which this file (inode) resides. .IR stx_rdev_major " and " stx_rdev_minor The device that this file (inode) represents if the file is of block or character device type. +.TP +.I stx_mnt_id +.\" commit fa2fcf4f1df1559a0a4ee0f46915b496cc2ebf60 +The mount ID of the mount containing the file. This is the same number reported by +.BR name_to_handle_at (2) +and corresponds to the number in the first field in one of the records in +.IR /proc/self/mountinfo . .PP For further information on the above fields, see .BR inode (7). @@ -573,9 +582,11 @@ is Linux-specific. .BR access (2), .BR chmod (2), .BR chown (2), +.BR name_to_handle_at (2), .BR readlink (2), .BR stat (2), .BR utime (2), +.BR proc (5), .BR capabilities (7), .BR inode (7), .BR symlink (7)