Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp706693ybz; Wed, 15 Apr 2020 17:09:23 -0700 (PDT) X-Google-Smtp-Source: APiQypLhmiphcN5MaWONMwdZPLgiNqiR9Sqv/eIIY5Pmc/sR+fCMyP9i6KS4PWPJaKFoKM5RwK4G X-Received: by 2002:a17:906:3e44:: with SMTP id t4mr7349143eji.337.1586995763700; Wed, 15 Apr 2020 17:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586995763; cv=none; d=google.com; s=arc-20160816; b=GyLvdlkim9oSIdva7akfRRtsBY8G8PD7RPRZ1L0EmquHf6XigW8QZroHhwpS6Yd0X0 MkNkka3HKp0367WKx1itZpKcWuc8BF1+Yyq3eDZxKs0BAQAH7/tXb0B9tN5g3+4q6gvl xDjzribqDH7J83VSfmUVAafBiZC5MR3eufYZMTbQTW+YlFZTsY6qBITu/XpLDpntyxOL 8WWkFOCvLIsacEt5gmSYYTxlIisII1zrYcICk70hH332/xrUAHyrXzlaLDd7fOrTh/RH ymzP0NTHqGr+IrVrkw1S9eiO3DL8E6qjPHHTbSnTfLb9vxan9obM44+lz9qIS/NoIKjV JbSg== 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=KJM7EiTuwoq9wSnYXv02loOh6lKJnIwJM35Tt35aKgs=; b=P2DrEvJ64PS641hA/At8GNsfDtoxGbYhxFxhKxmrZe6XnBJmIckDqb1PZpNjEkRvMH 0FyzsOBjYoUoPmnqU3AUWfewgHwoLATzSPcVFXRwWlfObubgLSmi/jDim4yldHhOM2HS rk9buIf7XsrKuM6+al1c0TV7bJJ5LVg/oexxUpGsUmTHHOvVPyw50lRrkyhlBZri+UXC Fmm7ifQZdE+itcTi9cwl+VzoEXu3OlkdYUU3bYMcjc2gXkAXgD6jc+LZxT3g3hgMRckc mg8ktx7EpmkFmraLIg3xMLvSNBgmjPAAy2SBFxYl8N4j1gCsWfjl74P6/WtvSjT8O6Uj ifsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LVbZ0I0S; 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 dk14si3151693ejb.124.2020.04.15.17.09.00; Wed, 15 Apr 2020 17:09:23 -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=LVbZ0I0S; 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 S2394097AbgDOOdM (ORCPT + 99 others); Wed, 15 Apr 2020 10:33:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:44666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394035AbgDOOcw (ORCPT ); Wed, 15 Apr 2020 10:32:52 -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 E18DA21556; Wed, 15 Apr 2020 14:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586961171; bh=keC3oeMrcSnH2waKHArc3YabYgrn90H59L0DAFUCsIY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LVbZ0I0S6b08mK3fFP8UhvrofpuMP8EtI6gh515livaswy0xYYaRtOZorAgmgmbxS vGBDfH1Ilxg0BrnYT3sflatTWgzXBR7CvmHDCq3qlwbhn9Outy4K0jM37WPhOy+hrQ Fb5DswJTk7rw/DiWt26Pr40+UTG7PZP+pAl/1m00= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jOj5t-006kOK-7O; Wed, 15 Apr 2020 16:32:49 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: [PATCH 08/34] docs: filesystems: convert cifs/cifsroot.rst to ReST Date: Wed, 15 Apr 2020 16:32:21 +0200 Message-Id: <74bf0300a2a3dd2d5f005a85099acb3138a8895c.1586960617.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 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