From nobody Thu Jun 29 08:19:57 2023 X-Original-To: dev-commits-src-branches@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 4QsBFn4XlMz4knSt; Thu, 29 Jun 2023 08:19:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QsBFn464dz3sbf; Thu, 29 Jun 2023 08:19:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688026797; 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; bh=9S0CGklsE3pzcPKa5nacwuCfy5k483OVsMimsTYWe7g=; b=EKVefaO5fY7gtiz8v/uy7N5/AZUhmSiKQ0iYmgN+7pPXlDakRkboBu1aARnxDZm7gD3nLz MWdtzdZDjXbOElkwbcj8lq3SRy7wqA6vbdG2qTDqECImeGbHgwdEOcW58QK1nv+COciaU8 u88L06JwE4Pydpp5qP7JX0AjnxbDkSjZKKGsh5oNETNjRuLI87LBxujYd0rZ67qNt+C4P7 Vx/I37Q4LOj9/uKh2jPBOip14jEiV4DrX/7k8WInv7RqrdUVC5GTTPUcPIRDkyicA58gVt WiBL1nu+3Z+CmO0KiTj02ikM678dgPGd0IR4GzGRwV/6lMIfAdG92Rcu35o7Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688026797; 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; bh=9S0CGklsE3pzcPKa5nacwuCfy5k483OVsMimsTYWe7g=; b=eg7SFjPhWzPbxSqcVwZCsH3hQ+FJNTNwsJjkTP6JhFRIUtEIUuxO1LzXE4qwDHsWmZ5YpI DMzL3QalWknMSHrJXcVijmWuHQV2/zKlw/xwRJnfnYmZNXjztXEvvg2+uZ23sEx6SfaIPQ Splg9vxWLetptIHLh/fWd8nLD2Nml13H5+YRK76/C108rzUolzWvZKclLVttKejCBUKS+s lpKEYA9ZdpqLOFA6ws73tWuiO2aOfDVSvBFRvLtI45Kp2zmyYg0QYIzRbAn7YuZc1SFuw7 B+lUubdgoF2icXEz/5D+JslNAgQPgyXv+MzLANNvZMZF1dmAaekbOCWxQOe5CQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688026797; a=rsa-sha256; cv=none; b=Sf8vxjOMT0WDo86CSoz0zERFTsaX/Je2xDctiwxqWhqKxOn2u4iNdk7iGRiu+9GfgS2ZsG nPv2yvL3T9RvnTe6c6wfAXz7R5gpynao0eNNBYvsCfkbbFd36c2pU8Rf8zlhG27utrLx0G 7V/10GPI7Hxx42wU902QPCePoqAolvaI9Ra0h2VLghnWZk95b5+uLEEKYbTk2hpGHivtBC LpDN3/Iqpthy7kjh/Xy0R5ue1xMv6JAGzy3fWIiJBkYoipG5DqasGC8HxAw9nlw3emh+2F EccUPwx6GyqpxaE/Ju+ookD2Qram2UoNM83A9NSDTyYWe3MeY7LoCxGI2D8mEw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QsBFn34S7z17QG; Thu, 29 Jun 2023 08:19:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 35T8JvO1074467; Thu, 29 Jun 2023 08:19:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 35T8JvfF074466; Thu, 29 Jun 2023 08:19:57 GMT (envelope-from git) Date: Thu, 29 Jun 2023 08:19:57 GMT Message-Id: <202306290819.35T8JvfF074466@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: fdab8b794ac3 - stable/13 - linsysfs(4): Keep Linux compatible sysfs the same as Ubuntu List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: fdab8b794ac3e84dacf0fea586b330197baf6f76 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=fdab8b794ac3e84dacf0fea586b330197baf6f76 commit fdab8b794ac3e84dacf0fea586b330197baf6f76 Author: Vico Chen AuthorDate: 2023-03-25 10:41:04 +0000 Commit: Dmitry Chagin CommitDate: 2023-06-29 08:15:13 +0000 linsysfs(4): Keep Linux compatible sysfs the same as Ubuntu By checking Ubuntu, there is no `/sys/subsystem' in sysfs. To compatible with Ubuntu, delete the 'subsystem' creation in Linux compatible module. On the other hand, the sysfs `/sys/subsystem' cause failure for some Linux udev cases. In Linux udev source code, there is a function named `scan_devices_all', and it will scan `/sys/subsystem' if it is existed, but now there are nothing in /sys/subsystem `, and it returns empty to cause some use cases failed. Reviewed by: dchagin Differential Revision: https://reviews.freebsd.org/D38885 MFC after: 1 month XMFC with: ifAPI (cherry picked from commit 1f0c8bfd650422a30aa6fcf01da860b8d43628a8) --- sys/compat/linsysfs/linsysfs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/compat/linsysfs/linsysfs.c b/sys/compat/linsysfs/linsysfs.c index 9ec066ac34c4..afb4e6466006 100644 --- a/sys/compat/linsysfs/linsysfs.c +++ b/sys/compat/linsysfs/linsysfs.c @@ -680,9 +680,6 @@ linsysfs_init(PFS_INIT_ARGS) /* /sys/kernel/debug, mountpoint for lindebugfs. */ pfs_create_dir(kernel, "debug", NULL, NULL, NULL, 0); - /* /sys/subsystem/... */ - dir = pfs_create_dir(root, "subsystem", NULL, NULL, NULL, 0); - return (0); }