Commit 175cc46f authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Jonathan Corbet
Browse files

docs: filesystems: convert cifs/cifsroot.txt to ReST



- 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: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/28de01ee52283287e4195cf736d7154f122d30d4.1588021877.git.mchehab+huawei@kernel.org


Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 0e822145
Loading
Loading
Loading
Loading
+32 −24
Original line number Diff line number Diff line
.. 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,11 +45,15 @@ settings in Samba smb.conf:
Kernel command line
===================

::

    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]

Enables the kernel to mount the root file system via SMB that are
@@ -65,7 +73,7 @@ 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]
@@ -82,12 +90,12 @@ Export root file system as a Samba share in smb.conf file.
	    directory mask = 0777
    ...

Restart smb service.
Restart smb service::

    # 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 \
+1 −0
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ Documentation for filesystem implementations.
   befs
   bfs
   btrfs
   cifs/cifsroot
   ceph
   cramfs
   debugfs