Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp258945pxy; Thu, 22 Apr 2021 01:13:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl1Qg3WQffG7vQx8Kk+dgq/2NN9EAJYtYTQbTaBvjpJhU+ABiiAlscG/nFXiE8zgELFyv5 X-Received: by 2002:aa7:de8c:: with SMTP id j12mr2360576edv.126.1619079181455; Thu, 22 Apr 2021 01:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619079181; cv=none; d=google.com; s=arc-20160816; b=MPJFXd8eedYg7iwRnD2PwjbNGz1cbuFoUWnvpVCIR2MFTAySe3b40tqNrQCsTf915+ WVnokHa2auge58aYM6s/mxY7HygaXQ3UfQwliTVibEwaDe3a4J5GxD0Lkn5lcHZeYO+z 4U+IsZ74F7zZ88w1jetpRe0mQiNaIClHt7vYY6Dcd5OZKS9akCU4ZB+KwDyVG+N40fc/ ZpivPFJ7xNNcvNj6BdQzVHLzc3MUEDq2/25u1CHIqM98iJoZdDx6EHjz1ePNkJXGNsDP dMlOIoow+Q9SuUm27hxaTtuIQ0JuGqYesZ0qK3z946yYIBAgHT0qm2Bo4IPr7Mn1LU9O saXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:content-language :thread-index:content-transfer-encoding:mime-version:message-id:date :subject:in-reply-to:cc:to:from:dkim-signature:dkim-filter; bh=hGN/D79ILXUF4z5gRM4/N5jKv/ExjwkKUiG8meJr/Ws=; b=A13G19s1TgC7lZzdcaUwGnMZg94UwNNMqvA81iRlfWWHNguk4AVLa5DRYFh/cmn9TH naN//dpyJRwXsYzkMWdiDPTCdRQfbLI0PFkZS9x7Igv3vmeyE7AinJze1+UrWsj/sFhA vG7rLxYjrH/sF590GqwPcWlGbhsilGsTfHTX1H4w2M9mVtjGDqI52R3bgskGZCHuoMw6 t3ZLhYysrg8GdIh8F15AIxNcicle0a1GengtM058xvvOZI2oIb5imJc254ET59OGvk7J wQf/v97OTs2voe7E2Ne0CwjuGD3DsRTLsYqePv6wRC2wewKAkZ0HbKCQVpfVspBEMTM2 5tyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ALfdyW8Q; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb13si1444026ejc.613.2021.04.22.01.12.38; Thu, 22 Apr 2021 01:13:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@samsung.com header.s=mail20170921 header.b=ALfdyW8Q; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229655AbhDVIMc (ORCPT + 99 others); Thu, 22 Apr 2021 04:12:32 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:50349 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230365AbhDVIMc (ORCPT ); Thu, 22 Apr 2021 04:12:32 -0400 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20210422081156epoutp0472aac8b117f896a30135d80b83140794~4H_C5b05B3053030530epoutp04e for ; Thu, 22 Apr 2021 08:11:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20210422081156epoutp0472aac8b117f896a30135d80b83140794~4H_C5b05B3053030530epoutp04e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1619079116; bh=hGN/D79ILXUF4z5gRM4/N5jKv/ExjwkKUiG8meJr/Ws=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=ALfdyW8QZqL2vtN0Fq3PZed+8YNXZAB05KURw+ZTN2M4Rz4VEKXTJvYKMKGyBOHAU 0av2cXcJgCH2qDDWpH8375MrCpXr8JPGv61jKW+Bjbe8DkUjrRiNvGeOwfn3fbO9NZ oiAAhm/+yF6kuMbZV4XZr/D0abkyz10LaLMHzwII= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20210422081155epcas1p12ea271e9d2ff474fe8bc3c081ef39324~4H_CSxzwt2800528005epcas1p1D; Thu, 22 Apr 2021 08:11:55 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.40.165]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4FQqrp3gq9z4x9Pr; Thu, 22 Apr 2021 08:11:54 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 3B.30.09824.ACF21806; Thu, 22 Apr 2021 17:11:54 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20210422081153epcas1p1520019a9ebf7795ecb6aeca1f8a1d1bf~4H_Axu-z12345923459epcas1p1J; Thu, 22 Apr 2021 08:11:53 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210422081153epsmtrp1cc2f48fec256d50f1e233711f111503b~4H_AwhAdn2208222082epsmtrp1c; Thu, 22 Apr 2021 08:11:53 +0000 (GMT) X-AuditID: b6c32a37-061ff70000002660-df-60812fca9b0d Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id C3.82.08163.9CF21806; Thu, 22 Apr 2021 17:11:53 +0900 (KST) Received: from namjaejeon01 (unknown [10.88.104.63]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210422081153epsmtip2f7a480e47fd144d6179c17122caab75d~4H_AfSJ9x1259512595epsmtip2U; Thu, 22 Apr 2021 08:11:53 +0000 (GMT) From: "Namjae Jeon" To: "'Amir Goldstein'" Cc: "'linux-fsdevel'" , "'Steve French'" , , "'Hyunchul Lee'" , "'Al Viro'" , "'Christoph Hellwig'" , "'Christoph Hellwig'" , "'ronnie sahlberg'" , , =?UTF-8?Q?'Aur=C3=A9lien_Aptel'?= , "'Eric Sandeen'" , "'Dan Carpenter'" , "'Colin King'" , "'Randy Dunlap'" , "'Matthew Wilcox'" , "'Sergey Senozhatsky'" , "'Steve French'" , "'Linux NFS Mailing List'" , "'samba-technical'" , "'Jeff Layton'" , "'J. Bruce Fields'" In-Reply-To: Subject: RE: cifsd/nfsd interop Date: Thu, 22 Apr 2021 17:11:53 +0900 Message-ID: <02f001d7374f$27a667c0$76f33740$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJTyQqcqdQSNpV/lHa5XB7yLgZgIwNL6ZwbAvs6Z/8CAQA1+KmExgzw Content-Language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA02TfUxTVxjGcz96b1Eq18LcATLB63Ba+WithYORxSmwu+Ami2HZIBt09Iai pe3a4pzMpJgAygQkoGKBQFC7CWMIEoEyBxZdg2RjbuCiTpmjNRQoCmQTxsfW9rKM/37nnOc5 73nek5ePCU+TQfxstYHVqeUqmliDX+/bJo64E5WfIe5yBsJ81wAOf/qmCYG2iSUSjlWmwoWm EgJOLJ/H4cCZBhReabqNwnsjz0g4b24k4bc3+t2G3gEedP3mlpSUzvDg4qUeEhYMiWB3awMB m2dHSTg51kfAB+V1BBxcsvHgwlwNsWc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zXvPZO81+ugrt/yEjuNHz3taf61PAniB9uM5C+fEt3hPSHmbN3S sxWii2QfzjT79ml3Iufq1rwHkV9svWsDKirqA+41FymxFGckGmoxFxUnAgBi5+16iwMAAA== X-CMS-MailID: 20210422081153epcas1p1520019a9ebf7795ecb6aeca1f8a1d1bf X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210422003836epcas1p391ed30aed1cf7b010b93c32fc1aebe89 References: <20210422002824.12677-1-namjae.jeon@samsung.com> <20210422002824.12677-2-namjae.jeon@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > > On Thu, Apr 22, 2021 at 4:31 AM Namjae Jeon wrote: > > > > This adds a document describing ksmbd design, key features and usage. > > > > Signed-off-by: Namjae Jeon > > Signed-off-by: Sergey Senozhatsky > > Signed-off-by: Hyunchul Lee > > Acked-by: Ronnie Sahlberg > > Signed-off-by: Steve French > > --- > > Documentation/filesystems/cifs/cifsd.rst | 152 > > +++++++++++++++++++++++ Documentation/filesystems/cifs/index.rst | 10 ++ > > Documentation/filesystems/index.rst | 2 +- > > 3 files changed, 163 insertions(+), 1 deletion(-) create mode 100644 > > Documentation/filesystems/cifs/cifsd.rst > > create mode 100644 Documentation/filesystems/cifs/index.rst > > > > diff --git a/Documentation/filesystems/cifs/cifsd.rst > > b/Documentation/filesystems/cifs/cifsd.rst > > new file mode 100644 > > index 000000000000..cb9f87b8529f > > --- /dev/null > > +++ b/Documentation/filesystems/cifs/cifsd.rst > > @@ -0,0 +1,152 @@ > > +.. SPDX-License-Identifier: GPL-2.0 > > + > > +========================== > > +CIFSD - SMB3 Kernel Server > > +========================== > > + > > +CIFSD is a linux kernel server which implements SMB3 protocol in > > +kernel space for sharing files over network. > > + > > Hello cifsd team! Hi Amir, > > I am very excited to see your work posted and especially excited to learn about the collaboration with > the samba team. Thanks! > > One of the benefits from kernel smbd implementation is improved ability to interoperate with VFS in > general and nfsd in particular. Agreed. This seems to be an important issue, I was missing this. > > For example, I have discussed with several samba team members the option that ksmbd will serve as a > kernel lease agent for samba, instead of having to work around the limitations of file lock UAPI. > > Could you share your plans (if any) for interoperability improvements with vfs/nfsd? > > It would be useful to add an "Interop" column to the Features table below to document the current > state and future plans or just include a note about it in the Status column. Okay, First, I need to check your previous mails about this. Then I will update it in features table. > > Off the top of my head, a list of features that samba supports partial kernel/nfsd interop with are: > - Leases (level 1) > - Notify > - ACLs (NT to POSIX map) > - Share modes > > In all of those features, ksmbd is in a position to do a better job. Right. > > I only assume that ksmbd implementation of POSIX extensions is a "native" implementation (i.e. a > symlink is implemented as a symlink) so ksmbd and nfsd exporting the same POSIX fs would at least > observe the same objects(?), but I would rather see this explicitly documented. Okay. > > Thanks, Thank you! > Amir. > > [...] > > > + > > +CIFSD Feature Status > > +==================== > > + > > +============================== ================================================= > > +Feature name Status > > +============================== ================================================= > > +Dialects Supported. SMB2.1 SMB3.0, SMB3.1.1 dialects > > + excluding security vulnerable SMB1. > > +Auto Negotiation Supported. > > +Compound Request Supported. > > +Oplock Cache Mechanism Supported. > > +SMB2 leases(v1 lease) Supported. > > +Directory leases(v2 lease) Planned for future. > > +Multi-credits Supported. > > +NTLM/NTLMv2 Supported. > > +HMAC-SHA256 Signing Supported. > > +Secure negotiate Supported. > > +Signing Update Supported. > > +Pre-authentication integrity Supported. > > +SMB3 encryption(CCM, GCM) Supported. > > +SMB direct(RDMA) Partial Supported. SMB3 Multi-channel is required > > + to connect to Windows client. > > +SMB3 Multi-channel In Progress. > > +SMB3.1.1 POSIX extension Supported. > > +ACLs Partial Supported. only DACLs available, SACLs is > > + planned for future. ksmbd generate random subauth > > + values(then store it to disk) and use uid/gid > > + get from inode as RID for local domain SID. > > + The current acl implementation is limited to > > + standalone server, not a domain member. > > +Kerberos Supported. > > +Durable handle v1,v2 Planned for future. > > +Persistent handle Planned for future. > > +SMB2 notify Planned for future. > > +Sparse file support Supported. > > +DCE/RPC support Partial Supported. a few calls(NetShareEnumAll, > > + NetServerGetInfo, SAMR, LSARPC) that needed as > > + file server via netlink interface from > > + ksmbd.mountd. > > +============================== > > +================================================= > > +