From: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
To: Linux Doc Mailing List <linux-doc@vger.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>,
linux-kernel@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>
Subject: [PATCH 08/34] docs: filesystems: convert cifs/cifsroot.rst to ReST
Date: Wed, 15 Apr 2020 16:32:21 +0200 [thread overview]
Message-ID: <74bf0300a2a3dd2d5f005a85099acb3138a8895c.1586960617.git.mchehab+huawei@kernel.org> (raw)
In-Reply-To: <cover.1586960617.git.mchehab+huawei@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 <mchehab+huawei@kernel.org>
---
.../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 <palcantara@suse.de>
+
Written 2019 by Aurelien Aptel <aaptel@suse.com>
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=//<server-ip>/<share>[,options]
+::
+
+ cifsroot=//<server-ip>/<share>[,options]
Enables the kernel to mount the root file system via SMB that are
located in the <server-ip> and <share> 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 773af390c5e5..d993b33a48c4 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
next prev parent reply other threads:[~2020-04-15 14:33 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-15 14:32 [PATCH 00/34] fs: convert remaining docs to ReST file format Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 01/34] docs: filesystems: fix references for doc files there Mauro Carvalho Chehab
2020-04-16 1:10 ` Joseph Qi
2020-04-15 14:32 ` [PATCH 02/34] docs: filesystems: convert caching/object.txt to ReST Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 03/34] docs: filesystems: convert caching/fscache.txt to ReST format Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 04/34] docs: filesystems: caching/netfs-api.txt: convert it to ReST Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 05/34] docs: filesystems: caching/operations.txt: " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 06/34] docs: filesystems: caching/cachefiles.txt: convert " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 07/34] docs: filesystems: caching/backend-api.txt: convert it " Mauro Carvalho Chehab
2020-04-15 14:32 ` Mauro Carvalho Chehab [this message]
2020-04-15 14:32 ` [PATCH 09/34] docs: filesystems: convert configfs.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 10/34] docs: filesystems: convert automount-support.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 11/34] docs: filesystems: convert coda.txt " Mauro Carvalho Chehab
2020-04-15 15:08 ` Jan Harkes
2020-04-15 14:32 ` [PATCH 12/34] docs: filesystems: convert dax.txt " Mauro Carvalho Chehab
2020-04-15 15:41 ` Darrick J. Wong
2020-04-21 16:31 ` Mauro Carvalho Chehab
2020-04-21 18:31 ` Darrick J. Wong
2020-04-21 19:53 ` Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 13/34] docs: filesystems: convert devpts.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 14/34] docs: filesystems: convert dnotify.txt " Mauro Carvalho Chehab
2020-04-16 8:45 ` Jan Kara
2020-04-15 14:32 ` [PATCH 15/34] docs: filesystems: convert fiemap.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 16/34] docs: filesystems: convert files.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 17/34] docs: filesystems: convert fuse-io.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 18/34] docs: filesystems: convert gfs2-glocks.txt " Mauro Carvalho Chehab
2020-04-15 14:52 ` Andreas Gruenbacher
2020-04-15 14:32 ` [PATCH 19/34] docs: filesystems: convert locks.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 20/34] docs: filesystems: convert mandatory-locking.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 21/34] docs: filesystems: convert mount_api.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 22/34] docs: filesystems: rename path-lookup.txt file Mauro Carvalho Chehab
2020-04-16 2:00 ` Eric Biggers
2020-04-21 16:38 ` Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 23/34] docs: filesystems: convert path-walking.txt to ReST Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 24/34] docs: filesystems: convert quota.txt " Mauro Carvalho Chehab
2020-04-16 8:47 ` Jan Kara
2020-04-15 14:32 ` [PATCH 25/34] docs: filesystems: convert seq_file.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 26/34] docs: filesystems: convert sharedsubtree.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 27/34] docs: filesystems: split spufs.txt into 3 separate files Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 28/34] docs: filesystems: convert spufs/spu_create.txt to ReST Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 29/34] docs: filesystems: convert spufs/spufs.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 30/34] docs: filesystems: convert spufs/spu_run.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 31/34] docs: filesystems: convert sysfs-pci.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 32/34] docs: filesystems: convert sysfs-tagging.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 33/34] docs: filesystems: convert xfs-delayed-logging-design.txt " Mauro Carvalho Chehab
2020-04-15 14:32 ` [PATCH 34/34] docs: filesystems: convert xfs-self-describing-metadata.txt " Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=74bf0300a2a3dd2d5f005a85099acb3138a8895c.1586960617.git.mchehab+huawei@kernel.org \
--to=mchehab+huawei@kernel.org \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®