From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 330FA1FD4 for ; Wed, 28 Jan 2026 14:01:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.196 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769608913; cv=none; b=ABwOSd5oSE/SD6ONoxcTIW+YGsuhb9pOUt9Spcs170YVtheGz1h3hnM7bUbNkeyWsjxiPSoAl4YsFUmpPcCEY/8mXO6URfKiBRBf3eF2tvY9yY1c2W3PPC/u4QF7fTYsOWL34K2a1vdb9d0DQtOKXxOn91rwCv3uha6rxJQoL6g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769608913; c=relaxed/simple; bh=eoSKh/ocFnhYLQzkWdKxGIM1RG4E23EL+VpGX4/Fmf0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kczoBf7H2sAWxM3C9PSD4G4M6MOjmEsMt+obJkiCIYYvygUKp8GMaFayQfoZ2zNUVkBlxcq8wizdCMGpoR3NhjQnkTzNyoqA0Dthcax0LkjmqAPvauOjz2N5/8P8uj9qV6GO0SoVOWnbDCKDpP+yDmf9cP0iJgYPU4vPiBCLf4o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=m5xIHxn5; arc=none smtp.client-ip=209.85.214.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="m5xIHxn5" Received: by mail-pl1-f196.google.com with SMTP id d9443c01a7336-2a12ed4d205so45853285ad.0 for ; Wed, 28 Jan 2026 06:01:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769608911; x=1770213711; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=W59NVKYmr41ENdKqLRGJ6Kumo6SlySsluyGp4wDEWow=; b=m5xIHxn5l3/q9YD5g3H/Hmug05e4/laD8F0n/aLmu3IVQpXSwklFd/IpAFDF0oITJM FSR3293uqJKHVj1sVyqLFow0wkHzDjHQLDVogvxTg41g9pDfThziA+Wk75dLR/egU4OM NlG9aMu4sxes6rsuUAa7Q02xs62GHwfgLpMhcpEmQWM/o2eh6gDHfks1atNQaxHY/OUF vu5ra+uAIeCYKG+bkyP9QeAl3etZ/43XHx9lxuBjSU2f3GdtatKD7/9F9inU3HDA75zI Bzfi9s7OOIk/bg+vhb9yDxqKXphvYE/6BSwYeotyVSFWJ2uFy8LcO043IzoQ8/ME4h5i WO/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769608911; x=1770213711; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=W59NVKYmr41ENdKqLRGJ6Kumo6SlySsluyGp4wDEWow=; b=DNztGV5B1XA/GbgY5TAfON1OgI6lLjEB/0DGDGQm6oXB5xxY+Ijj9CvTynYBb9HP1y GaLarrzOROsLFqIUIL1oF0imQvwnQehXdY316a9l4pu4/vQxUZqSDwrHqkTok2dNjRhs Bbb0NZpn2fVkUIYMRcH6sjvmohQdst83WzIdAYZPx25hypzaeDlfZXekl5L4lCTapDNO aSrNUhMtak5cAYDBDKx9dSknpOo82ybRRiEv044EXHam0P/hw5nQk2Zaif5mDeNDBgUO Lbwlv0nNr2WFT/IP7a42FgPW6nszT8pbbqJye3eD+XwGBr6U2ZP/fNq9WxywYbLBFLDF AtBA== X-Forwarded-Encrypted: i=1; AJvYcCXdGs4TcqmHVUTN7qJxXwi23zUFgDdLteALNeLN2lQcHWHGOouHjs3lQiC3JDDTDcPHUkOO@lists.linux.dev X-Gm-Message-State: AOJu0Yyj39ZGMpqSqQb46gLAzgU7joYbkc10073+ki9VJewHFMzGa5I6 Yp6OSYJeGfI49cmwZaFtYkaNXhPIfpCfSacloEVO/DHBEdts8DDybhiG X-Gm-Gg: AZuq6aJymobyc3ZIj6Um1eITnN4BNMXTKGPl8YUThAniFO72/kU/mj8bKH34/SfnZpb 0DKzvJ15SFN/3XiqARoEp5obhjEjByWy52wMEIEbwpAS5ZTSd45ygJVoPKQbygFFPNJQIUJMc8a gm29eD9EpS2Mbu1aDn1GV97pD2DUTbtK44qnHtLNTaXA09RtM6c0i2J+fjloTE2s3+IETRqbo7n rHun48wD/sXSzAeiewwzYHbZw9LFsbclQ6LcvqS6ec6F82oJbKXi+eRMYUuNq89YukCH0+X2JZH vu0NQGtGPGpLH9lgUEdAlbVTr7xAOLvg68gurbJ0sF5fsszXnI0qKwV6B9Bx4EnvDzWzaNpOsCI 4Q+VNtUAEmzXmNw/PJOQ96hLJOhFvVL8+B4+94XgQqq2dYEIC0UTFxutoHmgdQnWlHJnYynhPYV ywfAiyB9caSKRc4YUpaFkP/rg409DhnCF6L4uY4yZkfjk= X-Received: by 2002:a17:903:2b0e:b0:297:dabf:9900 with SMTP id d9443c01a7336-2a870c3e2damr53919515ad.0.1769608911177; Wed, 28 Jan 2026 06:01:51 -0800 (PST) Received: from fedora ([2405:201:3017:184:6222:99fc:e57b:efec]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a88b426a64sm24182115ad.45.2026.01.28.06.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jan 2026 06:01:50 -0800 (PST) From: Bhavik Sachdev To: Alejandro Colomar Cc: Bhavik Sachdev , linux-man@vger.kernel.org, criu@lists.linux.dev, Andrei Vagin , Pavel Tikhomirov , Jeff Layton , Miklos Szeredi , Josef Bacik , Christian Brauner Subject: [PATCH 2/9] man/man2/statmount.2: Document STATMOUNT_MNT_OPTS Date: Wed, 28 Jan 2026 19:27:31 +0530 Message-ID: X-Mailer: git-send-email 2.52.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: criu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Document STATMOUNT_MNT_OPTS flag and the corresponding field introduced by it. STATMOUNT_MNT_OPTS is used to get all mount options on the mount separated by commas. Similiar to how they are displayed in /proc/[pid]/mountinfo. This text is based on this commit [1]. Link [1]: Signed-off-by: Bhavik Sachdev --- man/man2/statmount.2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/man/man2/statmount.2 b/man/man2/statmount.2 index 8cf6775ff..8ff01075d 100644 --- a/man/man2/statmount.2 +++ b/man/man2/statmount.2 @@ -31,6 +31,7 @@ .SH SYNOPSIS .P .B struct statmount { .B " __u32 size;" +.B " __u32 mnt_opts;" .B " __u64 mask;" .B " __u32 sb_dev_major;" .B " __u32 sb_dev_minor;" @@ -108,6 +109,7 @@ .SS The mnt_id_req structure STATMOUNT_MNT_POINT /* Want/got mnt_point */ STATMOUNT_FS_TYPE /* Want/got fs_type */ STATMOUNT_MNT_NS_ID /* Want/got mnt_ns_id */ +STATMOUNT_MNT_OPTS /* Want/got mnt_opts */ .TE .in .P @@ -160,6 +162,13 @@ .SS The returned information structure, including any of the strings fields that were filled. .TP +.TP +.I smbuf.mnt_opts +The offset to the location in the +.I smbuf.str +buffer that contains a comma separated list of mount options, similiar to those in /proc/[pid]/mountinfo. +It is a null-terminated string. +.TP .I smbuf.mask The ORed combination of .BI STATMOUNT_ * -- 2.52.0