NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/59957 CVS commit: src/usr.sbin/dumpfs
The following reply was made to PR bin/59957; it has been noted by GNATS.
From: "Robert Elz" <kre%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/59957 CVS commit: src/usr.sbin/dumpfs
Date: Thu, 7 May 2026 20:32:12 +0000
Module Name: src
Committed By: kre
Date: Thu May 7 20:32:12 UTC 2026
Modified Files:
src/usr.sbin/dumpfs: Makefile dumpfs.c
Log Message:
Fix dumpfs to allow NAME=wedge-label on command line
This is a follow-on from the PR bin/59957 changes, and is being
included with that PR so it is easier to locate all the tools that
have been changed this way, so they can all be updated again once
the new code is moved to libutil where it belongs, and out of src/sbin/fsck.
When handling of NAME=whatever was added to dumpfs, it was done
in a way where it could only work when dumpfs was used as
dumpfs mount-point
and /etc/fsck contained
NAME=whatever mount-point [rest of fstab entry]
That covers the vast majority of actual uses, but a simple
dumpfs NAME=whatever
should work as well (as it does in just about everything else now).
Using findspecial() (currently) from src/sbin/fsck/openspecial.c
allows that, and simplifies the dumpfs code considerably.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/dumpfs/Makefile
cvs rdiff -u -r1.70 -r1.71 src/usr.sbin/dumpfs/dumpfs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index