Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp338249ybz; Tue, 21 Apr 2020 09:58:47 -0700 (PDT) X-Google-Smtp-Source: APiQypLGYLbiq7Xd+2NB1YU27NCXVRG8aocJllW4sKMwzh5dKkZP6eSB4WOekzrkFZAvwee+7qrI X-Received: by 2002:a17:906:6992:: with SMTP id i18mr21257082ejr.293.1587488327394; Tue, 21 Apr 2020 09:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587488327; cv=none; d=google.com; s=arc-20160816; b=cDA0+X3nc/zbJUf9nWhEnUmOLjo7nPBzktW8/GLALv1CWRettoOcX4lWNQWl4GFsse 21trUMHBqWpbvJSqcWEQG6zoJYL133RBKSKrHnjYyjTBDf4/MfGH0YXsriUtI7xslFQM ySNC+XzzG3U7cu+9MDER312ThvRsLgZWUpQght5mZtWhIJqixFZEBCeL8IZuIk3XWPxi NdyFBQajZ16aFXI45ZwZ6MGnHw0Ap0uWWfXzaN4aIw5/sKM8F9Ip9mccIAbNWaylZxS2 xiFYHBx7fVkOT/HkIf1playFAPIyKBOD4p+luXvz76br62xK1sHk21Lu0ivteHMSLtkT uF2Q== 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=d2rlv+eHCU2wtqezNGa+jmlE0WkMKZCtQFN5TswI0Y4=; b=nLONTZChAh5ymLwkVcEOEFkqGr3dhvngMNJ4cbyJKQmfjG+CSkbXrmWtAjg3tuVYnJ ErfMR7qiYMg/yyANjTG4uQ8DgQJwBeV/V4GxT/fZrc64SbXZMcNTZrQST98SoicKgfS0 st7P3AXVK4fSSuBjhm67zSchDo2i/U+xm/m+9bbIywaGPieFDKvTDyUtKLTAY4dKFqS8 kGpjS46dJNrBklpCQBGS/XbEz3wvJ2nbgni1eivqKEJZ+/7UOj0CK/r8SnO/trg+5sgh Y0FIUuX0wTT4coqj8LQFzqAajTcGBKwK+DcRLh2KxRQREcuj5+tmoZWnN9ig8XVdAZP5 lJTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zbzEmAD0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a6si1960287edv.395.2020.04.21.09.58.23; Tue, 21 Apr 2020 09:58:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zbzEmAD0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729094AbgDUQyr (ORCPT + 99 others); Tue, 21 Apr 2020 12:54:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:56944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbgDUQyo (ORCPT ); Tue, 21 Apr 2020 12:54:44 -0400 Received: from mail.kernel.org (ip5f5ad4d8.dynamic.kabel-deutschland.de [95.90.212.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EFC8920735; Tue, 21 Apr 2020 16:54:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587488084; bh=1kWPdkZlddjo2q8OT55/S/qBNHNKq4K06TlfPFwAU7o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zbzEmAD0tmuMF7hOffBapQE8lLQNX2Q/RpSNxsZMnvI3guRp9QzyliutZPRN9DR8p bKeOOOf88ob419T5EkjDUmdyODUjPQjMAhnAIg9QF1RDo19MkbO+xVpDgsBHX/OmE2 nNZ8hzo73JbtfOEbsSdR20YTbyFTxvHzltMu6o/I= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jQwAU-00CmDq-7T; Tue, 21 Apr 2020 18:54:42 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: [PATCH v2 07/29] docs: filesystems: convert cifs/cifsroot.txt to ReST Date: Tue, 21 Apr 2020 18:54:18 +0200 Message-Id: <9e2f27e899f69bd49fb1c94482b039bda11f7bdf.1587487612.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.25.2 In-Reply-To: References: 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 - Add a SPDX header; - Adjust document title; - Some whitespace fixes and new line breaks; - Mark literal blocks as such; - Add it to filesystems/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../cifs/{cifsroot.txt => cifsroot.rst} | 56 +++++++++++-------- Documentation/filesystems/index.rst | 1 + 2 files changed, 33 insertions(+), 24 deletions(-) rename Documentation/filesystems/cifs/{cifsroot.txt => cifsroot.rst} (72%) diff --git a/Documentation/filesystems/cifs/cifsroot.txt b/Documentation/filesystems/cifs/cifsroot.rst similarity index 72% rename from Documentation/filesystems/cifs/cifsroot.txt rename to Documentation/filesystems/cifs/cifsroot.rst index 947b7ec6ce9e..4930bb443134 100644 --- a/Documentation/filesystems/cifs/cifsroot.txt +++ b/Documentation/filesystems/cifs/cifsroot.rst @@ -1,7 +1,11 @@ +.. SPDX-License-Identifier: GPL-2.0 + +=========================================== Mounting root file system via SMB (cifs.ko) =========================================== Written 2019 by Paulo Alcantara + Written 2019 by Aurelien Aptel The CONFIG_CIFS_ROOT option enables experimental root file system @@ -32,7 +36,7 @@ Server configuration ==================== To enable SMB1+UNIX extensions you will need to set these global -settings in Samba smb.conf: +settings in Samba smb.conf:: [global] server min protocol = NT1 @@ -41,12 +45,16 @@ settings in Samba smb.conf: Kernel command line =================== -root=/dev/cifs +:: + + root=/dev/cifs This is just a virtual device that basically tells the kernel to mount the root file system via SMB protocol. -cifsroot=///[,options] +:: + + cifsroot=///[,options] Enables the kernel to mount the root file system via SMB that are located in the and specified in this option. @@ -65,33 +73,33 @@ options Examples ======== -Export root file system as a Samba share in smb.conf file. +Export root file system as a Samba share in smb.conf file:: -... -[linux] - path = /path/to/rootfs - read only = no - guest ok = yes - force user = root - force group = root - browseable = yes - writeable = yes - admin users = root - public = yes - create mask = 0777 - directory mask = 0777 -... + ... + [linux] + path = /path/to/rootfs + read only = no + guest ok = yes + force user = root + force group = root + browseable = yes + writeable = yes + admin users = root + public = yes + create mask = 0777 + directory mask = 0777 + ... -Restart smb service. +Restart smb service:: -# systemctl restart smb + # systemctl restart smb Test it under QEMU on a kernel built with CONFIG_CIFS_ROOT and -CONFIG_IP_PNP options enabled. +CONFIG_IP_PNP options enabled:: -# qemu-system-x86_64 -enable-kvm -cpu host -m 1024 \ - -kernel /path/to/linux/arch/x86/boot/bzImage -nographic \ - -append "root=/dev/cifs rw ip=dhcp cifsroot=//10.0.2.2/linux,username=foo,password=bar console=ttyS0 3" + # qemu-system-x86_64 -enable-kvm -cpu host -m 1024 \ + -kernel /path/to/linux/arch/x86/boot/bzImage -nographic \ + -append "root=/dev/cifs rw ip=dhcp cifsroot=//10.0.2.2/linux,username=foo,password=bar console=ttyS0 3" 1: https://wiki.samba.org/index.php/UNIX_Extensions diff --git a/Documentation/filesystems/index.rst b/Documentation/filesystems/index.rst index f8781c13aee3..2ad8a207523e 100644 --- a/Documentation/filesystems/index.rst +++ b/Documentation/filesystems/index.rst @@ -59,6 +59,7 @@ Documentation for filesystem implementations. befs bfs btrfs + cifs/cifsroot ceph cramfs debugfs -- 2.25.2