NetBSD Problem Report #60644
From www@netbsd.org Tue Aug 25 21:24:50 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "YR2" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 483FF1A923B
for <gnats-bugs@gnats.NetBSD.org>; Tue, 25 Aug 2026 21:24:50 +0000 (UTC)
Message-Id: <20260825212449.12F3A1A923C@mollari.NetBSD.org>
Date: Tue, 25 Aug 2026 21:24:49 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: dump -X/-x: fssN search logic fails if snapshot is mounted
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>
>Number: 60644
>Category: bin
>Synopsis: dump -X/-x: fssN search logic fails if snapshot is mounted
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 25 21:25:00 +0000 2026
>Originator: Taylor R Campbell
>Release: current, 11, 10, 9, ...
>Organization:
The NetBusyDump Foundation, Inc.
>Environment:
>Description:
For its -X/-x options to dump with a snapshot, dump(8) has
logic to find a free /dev/fssN node for the snapshot, by
opening them one by one and checking whether ioctl(FSSIOCSET)
fails with EBUSY.
However, if, before it has found a free node, it finds an
fss(4) node that is not just configured but also _mounted_,
then ioctl(FSSIOCTSET) will fail with EPERM instead of EBUSY,
and so the loop will fail.
>How-To-Repeat:
fssconfig fss0 / /
mount /dev/fss0 /mnt
dump -X -f /dev/null -0a /
>Fix:
Yes, please!
Really, the right thing here is probably to just bite the
bullet and make /dev/fss a proper cloning device.
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.