From owner-freebsd-fs@freebsd.org Thu Dec 19 20:39:08 2019 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AE7F41EAC5B for ; Thu, 19 Dec 2019 20:39:08 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-ot1-f65.google.com (mail-ot1-f65.google.com [209.85.210.65]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47f3d7627Xz4626 for ; Thu, 19 Dec 2019 20:39:07 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-ot1-f65.google.com with SMTP id c22so8733443otj.13 for ; Thu, 19 Dec 2019 12:39:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=pg4ZR7yDuiCTNfwLmKX4D0r4WazUE9FJogsJCvcNZ5Q=; b=Rw3HhNpA9FHzaGEiJH+8BQ6vM441c+fiZ/gnfk0/ZHYuUX0Z2fKIRt1aZuzFniwBHO PHUgHh402QEGGhesK9R5HXeqUAQb/OROelAfiuGQidV4WThAx5VO/KKCXCWKixgxN1jV ExLu1udaWclsFH9vxtiNrqDD4E5LYjVuCqeTQk/CllvMp1zUo2pAfbgLGIvASeboiXnA GwYTKBPbxWhW+Ei56FE7pMy7JBksLL6BomiDnP0GSmyJCe1ljrQ1Wm7qWlvBPgI82lhV suwySEN+pRGDr+0PRsaWqFJhbcgZyKSs8BDWpS8eYA+iH1cZl2pnSzP77OZVO3BLb+qH oMXQ== X-Gm-Message-State: APjAAAXMKMFyLWuS8/r0oAdCsJ2pncxg9XTc8TJi/xTb/jDULEEHpQy1 VP6JLdrwkN1hGQ984MyPp0RasWuI X-Google-Smtp-Source: APXvYqxF+H3S1W/WEXTU5hZDKFbRmPxi/dFNO26oC5eKMdK6nQP7jTyBW2I/Q+8WBxl3zzrWk4egrA== X-Received: by 2002:a9d:7a88:: with SMTP id l8mr11300623otn.187.1576787946391; Thu, 19 Dec 2019 12:39:06 -0800 (PST) Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com. [209.85.210.53]) by smtp.gmail.com with ESMTPSA id s9sm2358070oic.15.2019.12.19.12.39.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Dec 2019 12:39:05 -0800 (PST) Received: by mail-ot1-f53.google.com with SMTP id h9so6186153otj.11 for ; Thu, 19 Dec 2019 12:39:05 -0800 (PST) X-Received: by 2002:a05:6830:1116:: with SMTP id w22mr11165069otq.216.1576787945600; Thu, 19 Dec 2019 12:39:05 -0800 (PST) MIME-Version: 1.0 References: <9b556cbe-f9f3-ab15-6fcd-71397d18c126@freebsd.org> <20170623104654.07e5a3e0@ernst.home> <45b0864b-680c-8fe0-f5a5-353b6373d069@freebsd.org> <20170624045543.GY39245@kduck.kaduk.org> <201912191647.xBJGleRa028173@higson.cam.lispworks.com> In-Reply-To: Reply-To: cem@freebsd.org From: Conrad Meyer Date: Thu, 19 Dec 2019 12:38:54 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: SMBv1 Deprecation / SMBv2 support in FreeBSD To: Bob Friesenhahn Cc: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-fs Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47f3d7627Xz4626 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of csecem@gmail.com designates 209.85.210.65 as permitted sender) smtp.mailfrom=csecem@gmail.com X-Spamd-Result: default: False [-3.09 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[cem@freebsd.org]; RWL_MAILSPIKE_GOOD(0.00)[65.210.85.209.rep.mailspike.net : 127.0.0.18]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; FORGED_SENDER(0.30)[cem@freebsd.org,csecem@gmail.com]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_NEQ_ENVFROM(0.00)[cem@freebsd.org,csecem@gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[65.210.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-1.09)[ip: (-0.37), ipnet: 209.85.128.0/17(-3.12), asn: 15169(-1.90), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Dec 2019 20:39:08 -0000 The apple code looks like a decent starting point if someone wants to try this in-kernel. For one, it's definitely derived from the existing FreeBSD smbfs code. SMB2 and 3 support has been added, and I didn't examine how much the vnode interface was changed. But this is suggestive that reconciling it into our tree would not be awful. One concern is the license on some portions of the new apple code is the APSL2. AIUI, and obviously IANAL, the APSL2 is somewhat similar to the file-basis copyleft property that the CDDL has. I don't know if we have any existing APSL2 code in tree, or if the foundation's lawyers would approve it. Perhaps the non-BSDL files would have to live in a sys/apsl subdirectory. That doesn't seem like a blocker for adapting Apple's smbfs implementation, but again, not a lawyer, and I haven't even skimmed the code. Best, Conrad On Thu, Dec 19, 2019 at 12:10 PM Bob Friesenhahn wrote: > > On Thu, 19 Dec 2019, Miroslav Lachman wrote: > > >> but I think FreeBSD's FUSE has improved since that thread started. > > > > I didn't tried it because what I read about it on forums is nothing good. > > Slow, unstable, not suitable for mounting 30+ shares on boot from fstab. > > Somebody reported speed with fusefs-smbnetfs less than 1Mbps. > > Also I found somebody trying to use gvfs to access samba shares on headless > > servers but again it was something I don't want in production. It gvfs is > > also userspace for browsing not for permanent mounting on defined mount > > points. > > Illumos has more modern SMB support in kernel. FreeBSD already uses > Illumos CDDL-licensed code via zfs and perhaps experience with the zfs > port would help with reusing Illumos code. I don't know if starting > with the Illumos SMB CDDL-licensed code fits with the objectives of > the FreeBSD project. Obviously, it would be a lot of work. > > Bob > -- > Bob Friesenhahn > bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ > GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ > Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"