From nobody Fri Jul 26 18:17:40 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 4WVww46gzQz5R5SF for ; Fri, 26 Jul 2024 18:17:40 +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 4WVww43sGtz4SgZ for ; Fri, 26 Jul 2024 18:17:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722017860; a=rsa-sha256; cv=none; b=aM6iG5zRqowsNPu47uwm9in/qWk+CWtVuQzp/7kUdAFnsn65Nw35yu5RS6GBfT70yb2q6J J6/z3szf7wnkSxyfyntx3WZO8RS/JdV5h/Vy/CamytsLNc77fCkiwXXEhIWdCRpQd1AQ07 Vw6t6XH0+PWn9N3ojU8BE0Qi+x8Q98tBt0Oj57Ul/rPDq34KHCJL7FP7sXB4BGSiw8Jx2e q3IZ+r2GGANHrlZR9hVm66kicGqoAre5xM/JYLh9DtRdhl9c8KIrRa3o4Mnahb67y3DpnT ml+X53Hda6yVBKm+ikJoAT2z7Hj1aw3vJ6mkX0ZTohg8Pj+/RCS6oH62dtfEpQ== 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=1722017860; 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=TpdV6fd809C3DCSzC0febQY2iG5l/03rCFODdCqukD0=; b=idDVYZD9SG0JOMc9Guqus7+lLl5tRc65o5suG/UbnIFE4l9CtF04hXMdh5ML5aA4T+I0dJ P5AmNzX5LZDrMVyuDZuZDY4NmWwgpsxnrUkGVXjA1DlnTF0roqCFl0evLqxiWj1RIzJhMA nIgZJhVglbrUxFLloBqcG/WMIZdZjB6gLZPVl6RCfqjb9xSrKQxrMM1ZG9iA+D7AjYxvz2 5ZAjGP/a+gBd09T+uHG2qxE4NZlCsCE1mLuqAFij3MPVgt+v2KS+W+v3syUPCG4VOx5pUA vJ3ucbkW5kqAWMGBBJBUEC3qf3xed5XYAei++HOYLNHo2DYEL4nv7xqgT763MA== 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 4WVww43M4qzZXy for ; Fri, 26 Jul 2024 18:17:40 +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 46QIHeZW050372 for ; Fri, 26 Jul 2024 18:17:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46QIHeSJ050365 for bugs@FreeBSD.org; Fri, 26 Jul 2024 18:17:40 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 18:17:40 +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: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc 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 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open CC| |markj@FreeBSD.org --- Comment #1 from Mark Johnston --- > I got bit by this because, if this is documented at all, it is not docume= nted in any obvious place. E.g., the mount(8) man page gives no clue that = you can't do this; it only says, in the documentation for the -u option, th= at it will fail if any file is opened for write. mount(2) is similarly sil= ent. The description of mount -u states: "An attempt to change from read-write to read-only will fail if any files on the file system are currently open for writing unless the -f flag is also specified." I don't agree with the notion that unlinked files deserve some special ment= ion here. An unlinked file is still being used as file, it just doesn't have a= ny names referring to it, just one or more open file descriptors. --=20 You are receiving this mail because: You are the assignee for the bug.=