From nobody Sun May 17 23:56:34 2026 X-Original-To: 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 4gJdBq14Jvz6dHW0 for ; Sun, 17 May 2026 23:56:51 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4gJdBp2l2nz40RV; Sun, 17 May 2026 23:56:50 +0000 (UTC) (envelope-from kib@freebsd.org) Authentication-Results: mx1.freebsd.org; none Received: from tom.home (kib@localhost [127.0.0.1] (may be forged)) by kib.kiev.ua (8.18.1/8.18.1) with ESMTP id 64HNuYY9036476; Mon, 18 May 2026 02:56:37 +0300 (EEST) (envelope-from kib@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 64HNuYY9036476 Received: (from kostik@localhost) by tom.home (8.18.1/8.18.1/Submit) id 64HNuYm6036475; Mon, 18 May 2026 02:56:34 +0300 (EEST) (envelope-from kib@freebsd.org) X-Authentication-Warning: tom.home: kostik set sender to kib@freebsd.org using -f Date: Mon, 18 May 2026 02:56:34 +0300 From: Konstantin Belousov To: Maxim Sobolev Cc: current , Gerald Pfeifer Subject: Re: ntsync(9) Message-ID: References: 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=4.0.2 X-Spam-Checker-Version: SpamAssassin 4.0.2 (2025-08-27) on tom.home X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] X-Rspamd-Queue-Id: 4gJdBp2l2nz40RV X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated On Sun, May 17, 2026 at 03:41:26PM -0700, Maxim Sobolev wrote: > Nice. Adding some even minimal ntsync.9 would probably be good. Also, does > this need to be exposed via linux(9) somehow or will it work verbatim with > Linux binaries? > For linuxolator, some translation layer is needed. At least, the ioctl command numbers are differrent. It seems that the structures are identical, since they coincide with the definitions found in Linux' ntsync.rst. > On Sun, May 17, 2026, 2:47 p.m. Konstantin Belousov wrote: > > > Hello, > > since the recent hype around ntsync driver for Linux, written no less than > > 'Linux incorporates Windows features', I decided that FreeBSD should > > support the trend. Useful technical summary is available at > > https://fedoraproject.org/wiki/Changes/NTSYNC-Contained > > > > Apparently, there is some documentation > > https://docs.kernel.org/userspace-api/ntsync.html > > (which mis-spells ioctl names), and the test suite that seems to be > > more useful. > > > > FreeBSD port of the test suite can be found at > > https://github.com/kostikbel/freebsd-ntsync-test > > and the FreeBSD driver implementation at > > https://reviews.freebsd.org/D57038 > > > > This is a clean-room implementation, I did not read GPL-ed code. > > I used the documentation as reference, and ensured that the test suite > > passes fully. Amusingly, there was one test that contained bug in > > the check. > > > >