NetBSD Problem Report #61018

From www@netbsd.org  Mon Nov 16 08:12:08 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 "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 56DAD1A923B
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 16 Nov 2026 08:12:08 +0000 (UTC)
Message-Id: <20261116081207.1E81B1A923C@mollari.NetBSD.org>
Date: Mon, 16 Nov 2026 08:12:07 +0000 (UTC)
From: nia@pkgsrc.org
Reply-To: nia@pkgsrc.org
To: gnats-bugs@NetBSD.org
Subject: newfs_lfs(8) cannot take a wedge NAME=abc
X-Send-Pr-Version: www-1.0
X-From4GNATS: "nia@pkgsrc.org via gnats" <gnats-admin@NetBSD.org>

>Number:         61018
>Category:       bin
>Synopsis:       newfs_lfs(8) cannot take a wedge NAME=abc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 16 08:15:01 +0000 2026
>Last-Modified:  Mon Nov 16 08:35:00 +0000 2026
>Originator:     nia
>Release:        -current, -11, -10
>Organization:
The NetLFS Foundation
>Environment:
NetBSD  11.99.10 NetBSD 11.99.10 (GENERIC) #0: Sun Nov  8 13:15:11 UTC 2026  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/sparc64/compile/GENERIC sparc64
>Description:
I would expect newfs_lfs(8) to be able to take a NAME= argument for
a wedge instead of a path to a device node, much like the other newfs
commands.
>How-To-Repeat:
# dd if=/dev/zero of=/testfile bs=1m count=1024
# vndconfig vnd0 /testfile
# gpt create /dev/vnd0
# gpt add -l testlfs -t lfs vnd0
# newfs_lfs NAME=testlfs
newfs_lfs: /dev/NAME=testlfs: No such file or directory

correctly discovers the wedge:

# newfs NAME=testlfs

also works:

# newfs_msdos NAME=testlfs
>Fix:

>Audit-Trail:
From: "Nia Alarie" <nia@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/61018 CVS commit: src/sbin/newfs_lfs
Date: Mon, 16 Nov 2026 08:32:33 +0000

 Module Name:	src
 Committed By:	nia
 Date:		Mon Nov 16 08:32:33 UTC 2026

 Modified Files:
 	src/sbin/newfs_lfs: Makefile extern.h newfs.c

 Log Message:
 newfs_lfs(8): teach it to use findspecial so it can take NAME= syntax

 PR bin/61018 newfs_lfs(8) cannot take a wedge NAME=abc


 To generate a diff of this commit:
 cvs rdiff -u -r1.16 -r1.17 src/sbin/newfs_lfs/Makefile
 cvs rdiff -u -r1.14 -r1.15 src/sbin/newfs_lfs/extern.h
 cvs rdiff -u -r1.30 -r1.31 src/sbin/newfs_lfs/newfs.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(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.