From nobody Thu Aug 22 22:17:32 2024 X-Original-To: bugs@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 4WqcyN5bhgz5Tkyt for ; Thu, 22 Aug 2024 22:17:32 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WqcyN3YfLz4jlw for ; Thu, 22 Aug 2024 22:17:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724365052; a=rsa-sha256; cv=none; b=BzfVDf5uEF2FD57ywjGywHvMcXp7k9MjuLbddFwcqVLixnxrdzhFdL7siChfRNmBekfTyQ LQXhnUOK8FakE7IXTtEJEO8D3SWWcThxUCbDJfVxVtXiKtu+i5YgfcbQjEQ7NTI+BnJ++S xsYZY4zzAxo/4WHnIkG4k0eksR7EEyHJQ/jfBbkZXHEoSfR/YyzBfUe5J94NDNU99eSrM1 ewqAdz/Ba5keOotwKZXhieOL1JDLastlg5k8JuRW1fwFM2ETaZYXfvy3whQKKgx0KPpVzG ixtF3O/Dnl2/Dl2y3vzls5DN+Co9QvK4O09dCCkCeUhm79vMNnaMEzwKjQtRdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724365052; 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=UmCXBFZj1w6HflkWICBXcK2tw4CnW33U5M2h2IjbBJA=; b=ILPrNtoQhkzwvWxf6qonEEY8S+xlLUxbE3m2q2nWpv4Gsz8zKWGWyUXCaSeHCOV4JSoSr1 mjunxKKlhi5n1XA9uEVLTvTx/hDOes8mpHDXyNDn10MYvdNTfyPcZ4dqsATl8B+ACsrFIs EMECt33gAF/+Xkd64vrfAEcML0FEIxTKjelyTjibqcC+J28uzgjryuXcVoef/UsU2LdIDk 13hdoFr+cujOXkEzuviliiHwsFHgvgEGoOwhc+YH+EV9XD7nZou4GfGS6DIK1Y8KqWmQnB dyUUCjcEcCIKnmhrEc2oWVnKsS5bICwHwcG6i4K22m4vYkdwwaZOzl/8kEdHdQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4WqcyN337nzlvW for ; Thu, 22 Aug 2024 22:17:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 47MMHWM5000616 for ; Thu, 22 Aug 2024 22:17:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47MMHW0i000613 for bugs@FreeBSD.org; Thu, 22 Aug 2024 22:17:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 281000] camsim: creating and destroying CTL LUNs does not notify the camsim frontend Date: Thu, 22 Aug 2024 22:17:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: asomers@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281000 Bug ID: 281000 Summary: camsim: creating and destroying CTL LUNs does not notify the camsim frontend Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: asomers@FreeBSD.org Creating and destroying CTL LUNs does not notify the camsim frontend. Whet= her I create a LUN or destroy it, the camsim frontend does not report any change until a reprobe (for Mediasize changes) or rescan (for device creation or destruction). Shouldn't this be automatic? Steps to Reproduce =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D $ sudo kldload ctl $ sudo ctladm port -o on -p 0 Front End Ports enabled $ sudo ctladm create -b ramdisk -s 1048576 LUN created successfully backend: ramdisk device type: 0 LUN size: 1048576 bytes blocksize 512 bytes LUN ID: 0 Serial Number: MYSERIAL0000 Device ID: MYDEVID0000 $ sudo camcontrol devlist Notice that there are no da devices $ sudo camcontrol rescan all Re-scan of bus 0 was successful $ sudo camcontrol devlist at scbus0 target 0 lun 0 (da0,pass0) Now there is a da device $ sudo ctladm remove -b ramdisk -l 0 LUN 0 removed successfully $ sudo camcontrol devlist at scbus0 target 0 lun 0 (da0,pass0) Notice that there is still a da device, even though it should be gone. $ sudo ctladm create -b ramdisk -s 2097152 LUN created successfully backend: ramdisk device type: 0 LUN size: 2097152 bytes blocksize 512 bytes LUN ID: 0 Serial Number: MYSERIAL0000 Device ID: MYDEVID0000 $ geom disk list da0 | grep Mediasize Mediasize: 1048576 (1.0M) Now we recreated the device, but notice that its Mediasize is wrong. --=20 You are receiving this mail because: You are the assignee for the bug.=