From nobody Mon Jan 24 10:16:17 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 87AE31986635 for ; Mon, 24 Jan 2022 10:16:20 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jj5VX2KdVz3nfK for ; Mon, 24 Jan 2022 10:16:20 +0000 (UTC) (envelope-from theraven@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643019380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yITgKmf18YeJsc3r0R24Mm7xpOcIgqmE6GefWedk11c=; b=oHJbwv6NF78Rh8hPqnrC+AZAlXdXdm6U4ueDJJUSuGeAtZvh9lViBJ+M83YkXR2ModLAhC kQJ5f0r24we0RQizahL4MQQOk6rgPy4pTq5sD1hcuekzWYMhIarpO6RCOcSsyB1QV+odro jCVeYX5CnqfabaeIFrinYEFIGrXxdie/Q7J4IxUripW4DZ7YEAwPH3yMqCGPyPQ5isaHU4 kluajNdddozbu9/rVFMsJk33VSdykDDQFTbDAvBGMezCHDUQTGe8jmRX47TGwqcJqztOl3 lHl1p5xYGITgLiZfS5ITR3dWNVF8esnpaptEo93TJ5iPh9LL5cYM533f607KLQ== Received: from smtp.theravensnest.org (smtp.theravensnest.org [45.77.103.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: theraven) by smtp.freebsd.org (Postfix) with ESMTPSA id 2A3842D1AE for ; Mon, 24 Jan 2022 10:16:20 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from [192.168.1.202] (host86-134-184-31.range86-134.btcentralplus.com [86.134.184.31]) by smtp.theravensnest.org (Postfix) with ESMTPSA id 360772EC90 for ; Mon, 24 Jan 2022 10:16:19 +0000 (GMT) Message-ID: <489849ca-a404-fb54-81d1-d62ea18c5832@FreeBSD.org> Date: Mon, 24 Jan 2022 10:16:17 +0000 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Deprecating smbfs(5) and removing it before FreeBSD 14 Content-Language: en-GB To: freebsd-current@freebsd.org References: <6f99f9bc-8831-aefe-4f73-72f50f8f347b@aetern.org> <79402464-f9e6-5f56-645e-cfd49640032e@quip.cz> <7db04ed9-39eb-7163-ce92-9a52c5f7d302@quip.cz> <54704b99-7b89-76a4-0368-79bee391926d@quip.cz> From: David Chisnall In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643019380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yITgKmf18YeJsc3r0R24Mm7xpOcIgqmE6GefWedk11c=; b=xE8iZM8IJZIuBtkheDmqrXqw8BofOf6RS95tlj13b1YaZnpE+tF5HIRVtNl+kS3RAwIxev s5a1IzANYirfF3dhDB8EjarzGMkE0rznLd9vjXLsAJCe9PfPOxRPA7BzQ5YXAdIT2NyTwu JTWiINLezI82T2/ZC9dl9LGwftFR/6hYci1d/zZW2DNAqqc7dv7ZlwnnHX/2HArjhWsxax NvkgBjeFOvxIxYoFbk8NTQhkqlmNfxjqRNTT6IFtKb5hAQAOuH927ybnvL5SzCev4WCKYT ApQibjYH0JN4LKZmlW50jI2jIVP+T1GRvk0XXJoui7QfhuNYFpoS73/RfTvLdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643019380; a=rsa-sha256; cv=none; b=wWGWOrp3Cc5cSr/DxabMotrxUlPSK53mXZpUBIuRSp0Qo8ySjnIbEbzWmPauz9v0rqeDeR uGRg056j4FN+SbeU9rgenhRJYhsuu8miO5yBMf+dNKfUG1FqAj5v8OJC/Pwd/ZcUV2CaNY Yhh+mcR+vjGr2sSgCpExGJewVhMwFZygTSeI9VtVPMOwCyEVJr/NElz5Kw1O/JNQuRZ9ww bA8Hoyi26yJV+E/zxpKQInCRAnI8fZXhChZ6ft/t6ZlC03TrRM0VDb5rIPa7wyM5ZKaiL1 FgWA8Ju/5YYS+eWmu6lVs2QH7k+kVq8UuuMv9GAjaD41s/rFlIiS9rqjHFpi1A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 22/01/2022 23:20, Rick Macklem wrote: > Mark Saad wrote: > [stuff snipped] >> So I am looking at the Apple and Solaris code, provided by rick. I am not >> sure if the illumos code provides SMB2 support. They based the solaris >> code on Apple SMB-217.x which is from OSX 10.4 . Which I am sure >> predates smb2 . >> >> https://github.com/apple-oss-distributions/smb/tree/smb-217.19 >> >> If I am following this correctly we need to look at Apple's smb client >> from OSX 10.9 which is where I start to see bits about smb2 >> >> https://github.com/apple-oss-distributions/smb/tree/smb-697.95.1/kernel/netsmb >> >> This is also where this stuff starts to look less and less like FreeBSD . >> Let me ask some of the illumos people I know to see if there is >> anything they can point to. > Yes. Please do so. I saw the "old" calls fo things like open and the > new ntcreate version, so I assumed that was the newer SMB. > If it is not, there is no reason to port it. > > The new Apple code is a monster. 10x the lines of C and a lot of > weird stuff that looks Apple specific. > > It might actually be easier to write SMBv2 from the spec than port > the Apple stuff. > --> I'll try and look at whatever Microsoft publishes w.r.t. SMBv2/3. > > Thanks for looking at this, rick The docs are public: https://docs.microsoft.com/en-gb/openspecs/windows_protocols/ms-smb2/5606ad47-5ee0-437a-817e-70c366052962 Note that the spec is 480 pages, it is not a trivial protocol to implement from scratch. David