Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1892406ybc; Sun, 17 Nov 2019 09:29:42 -0800 (PST) X-Google-Smtp-Source: APXvYqx/t9A8N+b/2z+Wm5e6qSqpdXz14gNGKks9dM/04ETD3n1X5YhLDwtLHtUosepYKH305nRN X-Received: by 2002:a17:906:d71:: with SMTP id s17mr19627632ejh.312.1574011782298; Sun, 17 Nov 2019 09:29:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574011782; cv=none; d=google.com; s=arc-20160816; b=UgtTK8sElY7PINIU/FjRrhfiBIO4yPfg8lJtmJzIA6sz03X07WzW6I5QyXO/Z4sVPp 9qFnyuCXtQ5y6em3EsIVC2DQYSmVbytdoMDJ0QD/lNE8/32OIuIXcSf0V3R3gNGeMkNN 6i1q4wavd79zxUf9P7GDhow0er1hzSbAwup3DyXM+uZTda7gNxsdTHOxk6l85WTCDY/T m+79YhZpg9DiIY3pOVygcZG4Ip7zbZKT+dmtN89U3i8wJ2ZE4YWuTEojrS+RY9dLQ9WM lTpt7qMtVL9+N3xEyFE9CMT+Z9CL6uIBl/DlSRZQVMBQyeGzVWBlJ0PX0y3SdjA0c0bb i1ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Av+HK2/LnryCPXE2pMFULV8E1x0dPwk+5aKFWr2QtjI=; b=G7uCIssI1WBvQ1cpDwMwDfW0Z42auWss3X9LKrluGQhamqa0Aci5VcV6GLW6q34add 7R/yePZ6REzgcRj7LC0gDto5XMkD6LfCQWjECkSrf3cRmtZhFUytKQuqCelH6Zx1slsj zDgYJ3ONcR0BVp9S14yNMGQkfn4Z4YcCRwaSlCVPKH2aAXe9tr9Bb7suY8HC0P5QBmrd bKN3cY3jG/idMZFfiqi262Q/X1LZlwK7ZrnL4iuSx9vQQMiCOXAYUOhSXOfCGWCMuexx 3juFZaT4wnX3Iufr8TXGjnXKuGI7y5YblXZpSIYqOwzM4WvCd4hkBUVmpBCjwxWiolZ/ sOuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mf0+ba82; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s22si9914819ejz.245.2019.11.17.09.29.18; Sun, 17 Nov 2019 09:29:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mf0+ba82; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726279AbfKQRZX (ORCPT + 99 others); Sun, 17 Nov 2019 12:25:23 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:41634 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbfKQRZX (ORCPT ); Sun, 17 Nov 2019 12:25:23 -0500 Received: by mail-pl1-f193.google.com with SMTP id d29so8281708plj.8; Sun, 17 Nov 2019 09:25:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Av+HK2/LnryCPXE2pMFULV8E1x0dPwk+5aKFWr2QtjI=; b=Mf0+ba82SJuPDW/KRGoJ39qEHaJN1XyFmnTe/sOHGfrL/G03s5sXKSh636lcKRh/A2 6f85D4EHRB7ZJiv8318Mo5zm4amTsR104icW1n+9iIJTYZnK4f/rZQ8HniteumeBacW1 Sy6pH5BCjfW+XSgZzGLRfofHtkiC6OHGiGo/mBGtzAfUf46g8rU3e6+ugDO/u5b2H7He 9Z0NV3LlVgJEa0/hfrbv1elnOG48S2hDBTUqxer6zl46RvHc9z2ay5nfsHlK6ZRWhrTb aK7T7SlO8WRlnd+HX+hS8D2XzbPUYyBrGiI3Lm5L/mJElj4EAya1RS2iXH52GFhtAcUS ui8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Av+HK2/LnryCPXE2pMFULV8E1x0dPwk+5aKFWr2QtjI=; b=Dk91wfpGbXQSHqvjacirDHE4tyzYkhnMAm0GPZCorMCAy6IZVwYcDQhnw62GwDXxc/ DbBigLJ59zDLcHZ8NG/XBEyHcqWG2Tyw8GIRSqsSHxFQO0wDakFzo35gGIAmUjNzJZNO dsZTREJRtKgnieyFxTWC988tr8goYKOYc5flNsDI0Ge4ErhLjpWcrcs3h1Wvn2kjKv3L Pswq2lAwoSFQnv1iS3pePSzP+o72xu01+UGGCqKbeHbF3hYz/HNGcTnzISCYy7QJCGJ7 DGjOpWfJCDu7BU3TPe87CLJYo6jwYKFtK5HOCr2p4r3gBuf79QiW4wO1zPryoFjv9IUl ZSCw== X-Gm-Message-State: APjAAAUazL7/lk7LwI921SWrPvuto2vfkhHfgkjE8xBfY7AnfbqRQtBO 6Il1BECtI6qWeT0GjJk/rfY= X-Received: by 2002:a17:902:760d:: with SMTP id k13mr12997470pll.28.1574011522589; Sun, 17 Nov 2019 09:25:22 -0800 (PST) Received: from localhost.localdomain ([2402:3a80:1662:ba74:f9a6:2aa3:8a9a:5581]) by smtp.googlemail.com with ESMTPSA id x13sm18146302pfc.46.2019.11.17.09.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 09:25:22 -0800 (PST) From: Jaskaran Singh To: corbet@lwn.net Cc: raven@themaw.net, akpm@linux-foundation.org, jaskaransingh7654321@gmail.com, mchehab+samsung@kernel.org, neilb@suse.com, christian@brauner.io, mszeredi@redhat.com, ebiggers@google.com, tobin@kernel.org, stefanha@redhat.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org Subject: [PATCH v2 2/3] docs: filesystems: Update code snippets in autofs.rst Date: Sun, 17 Nov 2019 22:54:35 +0530 Message-Id: <20191117172436.8831-3-jaskaransingh7654321@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191117172436.8831-1-jaskaransingh7654321@gmail.com> References: <20191117172436.8831-1-jaskaransingh7654321@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some of the struct definitions now have an autofs packet header. Reflect these changes by adding a definition of this header and place it wherever suitable. Signed-off-by: Jaskaran Singh --- Documentation/filesystems/autofs.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Documentation/filesystems/autofs.rst b/Documentation/filesystems/autofs.rst index 6702a5f61f50..2f704e9c5dc0 100644 --- a/Documentation/filesystems/autofs.rst +++ b/Documentation/filesystems/autofs.rst @@ -322,8 +322,7 @@ notification messages to this pipe for the daemon to respond to. For version 5, the format of the message is:: struct autofs_v5_packet { - int proto_version; /* Protocol version */ - int type; /* Type of packet */ + struct autofs_packet_hdr hdr; autofs_wqt_t wait_queue_token; __u32 dev; __u64 ino; @@ -335,6 +334,13 @@ For version 5, the format of the message is:: char name[NAME_MAX+1]; }; +And the format of the header is:: + + struct autofs_packet_hdr { + int proto_version; /* Protocol version */ + int type; /* Type of packet */ + }; + where the type is one of :: autofs_ptype_missing_indirect @@ -395,8 +401,7 @@ The available ioctl commands are: anything suitable to expire. A pointer to a packet:: struct autofs_packet_expire_multi { - int proto_version; /* Protocol version */ - int type; /* Type of packet */ + struct autofs_packet_hdr hdr; autofs_wqt_t wait_queue_token; int len; char name[NAME_MAX+1]; -- 2.21.0