From nobody Fri Jul 26 23:17:47 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 4WW3ZM5MC6z5RYHv for ; Fri, 26 Jul 2024 23:17:47 +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 4WW3ZM2mDYz4tk8 for ; Fri, 26 Jul 2024 23:17:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722035867; a=rsa-sha256; cv=none; b=o02OQb6YFCzl0QxMOMM7e4xxa1NYwgrQAxFDIhQUv3ex4F/535NDaHidPFPeu8/mSTLoVs +Lb1eZyg/7FWR/wH5ctAclbugGrI+urK2Xsiooq5f+mdLXcohaH7gzV0R6KzKVon6EZ84s H2RUVi+COPM/MT13ZNNvCtv4Ub8xS9aTcXrDcrq7PECXI4+4cjQxS//T6ixq5X5tcSfLmU 8YBKvepNZ0XfmOBH/3Kn9n6cJmmp9vHu1fR8iJXYV+ZRZyfYNM5qibDWZCb0yjGrkilwtu ZeIZe8SVj8nPwvbUzz7QPQCBA7deobmQ4M5XkJVy68tYghX08PHO/8nZmMqLvQ== 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=1722035867; 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: in-reply-to:in-reply-to:references:references; bh=KbzWvXJf96ykCGCe0m8wie5VuAjaq6hUxucZakljKjw=; b=N6FE/ZmlR590+cGaOe3yM+y1KJcqcQ7DN83ax5ek6MMeU0G50b/mpohEExj72SBbzPYSpG E0cDllY4Bj5L0biLOAqraPRLqBVCCwe86HZCgSTd00aVi2fMnHcqzxYzRVMAhsZCaJ7Pgd gRR85lZc2hvxFP2GnbZJxY4oDxxNJeLDze611UZxQTW6oR9TzES7iuy4nFzmrBEGSRmmAw hXh41RE4F3va/F9n2i01eS+/TQs6QNjheTz+UNfcjtescM2K321mVL9w4Lal4Uohdo+6XF rmBw8RvqhgYNyjRuoLscnNHqJhf5jQUmec3DYnLRuLvUNk/LPRiyeoOq8VMNOg== 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 4WW3ZM269Dzj4L for ; Fri, 26 Jul 2024 23:17:47 +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 46QNHliI072767 for ; Fri, 26 Jul 2024 23:17:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46QNHlbw072766 for bugs@FreeBSD.org; Fri, 26 Jul 2024 23:17:47 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 280383] Removing the last link to an open file prevents remounting read-only--suggest document and/or code change Date: Fri, 26 Jul 2024 23:17:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: billblake2018@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D280383 --- Comment #4 from Bill Blake --- (In reply to Mark Johnston from comment #3) It occurred to me that any documentation change should probably have a few extra words. In the cases where I got bit, I didn't actually have a file o= pen. Instead, the "open files" were executables and shared libraries that were = in use. So maybe the change should also point out that executables and shared libraries that are in use count as open files. (This is a problem that bit me long ago, but I only recently got around to tracking it down. I run with /usr read-only and when I want to change something on /usr, I run a script that remounts it r/w, runs a command, and then remounts it r/o. The way I most recently got bit was doing a "pkg add= " of a shared library that the X server was using. The "pkg add" worked fine but the remount to r/o failed. In earlier cases, though I didn't realize it at= the time, the offender was a text editor I maintain. Since I almost always hav= e a running copy of that editor, if I upgraded the editor--again through that script--the remount r/o would fail until I completely exited all invocation= s of the editor.) --=20 You are receiving this mail because: You are the assignee for the bug.=