From nobody Sat Mar 25 10:45:46 2023 X-Original-To: dev-commits-src-all@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 4PkG2L5C9dz420qb; Sat, 25 Mar 2023 10:45:46 +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 4PkG2L3dnbz3hBB; Sat, 25 Mar 2023 10:45:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679741146; 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=v6uv5rgZ3HOpKfzgWlRjp0obzoOw1JWcVMcQLOvVNz8=; b=XXyGVhH6tPpOqU5ZiPUWSBSwX9gfPEtXKm0NYDuuvtJLj2Wt3SEbS82yzieTc4s4qvEfG/ 1ssExHP76J6XqO1LDYLRWd8r1vcVIezC5ck4AFqaJDHluo/hUuLCkx2uj8V84Yrm6gq5IU Bqh4c9vEiLhC5ylulMQuTw/XRNciTx3UewHdvPTFE8rUC+zgXpQGWMp8wZ0Fe0+A1V9TgW Mfe3g9POFaPjqPiNFlTaOWUFv6ymPtgVLYtpU0hXq2CeyMYeYDcFLOp9TB/hsnAk+adhXE /4MNmzHfJhvZDR5E/WxZ8xiPaVeeTH64zQBjFNadbToFRR7MvKD0WO7r4fmECA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679741146; 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=v6uv5rgZ3HOpKfzgWlRjp0obzoOw1JWcVMcQLOvVNz8=; b=s2MLyYvYjtHEmArmVVdlHbkMMTaPUL0O8BCv8x4RvIsqwqdItXRzmu32mL/v0bDqtgY5uI MsQRYHfgyuRyn2GPlDpCvzqagWdq++ADhtkA01oViVDNuciLpGMN67ABNf8PRaAHWX4soq 27ca+5ebWzHrD7Bor5RXFeFIx2WhN8/zYpfe1OI43ZBUVy4+Gd+QDKpt6EfMl5iG6ovQGN 4k9D7sZ7H7r2IntgdRhXoH2EqGKR1xCv7VVCjITVKr7mOtz1Cjb274htRiUu5fz0faAqGf V6Y14KYuZEnUY/rsLD38IXQJf6NhxSsGz4iZmG9UtdHvupdJXG5IrL/IupyAdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679741146; a=rsa-sha256; cv=none; b=eJf8/woK4BC1Yhqg3E5JPE/BGQ2MkRQ/0kMSn94dfoFRtvhMvGHp1bA7CLznnblT9+E0nZ Q3LTwwy2zvMx0mr/paxjzITME8k0UieUFZsfKOw5sluZb56ME+V8Q+wXqnzXVGLmrIVebR VL1TZoc1+gz957FVE9TOpU3JGAes8HOjQlLGutLFzOEv/iWadniQ1Ch7Y8kAuSdxa1l1T2 LdOGUqfrr8y8vqlxJFc3BuzHfuVmOGaDX7gd2w4rubT3HS5UOBOhEVnxjytQzyHPaym/CF k7dmpuiH0AyzDSwX4PD0nVfnyfa9Wb2XQNd2tE1pYkhUuVNox++zGIdVpr5DhQ== 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 4PkG2L2b5Bzwqf; Sat, 25 Mar 2023 10:45:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32PAjkXX053880; Sat, 25 Mar 2023 10:45:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32PAjkZP053879; Sat, 25 Mar 2023 10:45:46 GMT (envelope-from git) Date: Sat, 25 Mar 2023 10:45:46 GMT Message-Id: <202303251045.32PAjkZP053879@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: 1f0c8bfd6504 - main - linsysfs(4): Keep Linux compatible sysfs the same as Ubuntu List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 1f0c8bfd650422a30aa6fcf01da860b8d43628a8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=1f0c8bfd650422a30aa6fcf01da860b8d43628a8 commit 1f0c8bfd650422a30aa6fcf01da860b8d43628a8 Author: Vico Chen AuthorDate: 2023-03-25 10:41:04 +0000 Commit: Dmitry Chagin CommitDate: 2023-03-25 10:41:04 +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 --- 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 298ce4508b4d..23abd2c32743 100644 --- a/sys/compat/linsysfs/linsysfs.c +++ b/sys/compat/linsysfs/linsysfs.c @@ -535,9 +535,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); - linsysfs_net_init(); return (0);