NetBSD Problem Report #57675

From www@netbsd.org  Wed Oct 25 16:36:51 2023
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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id CF9041A9238
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 25 Oct 2023 16:36:50 +0000 (UTC)
Message-Id: <20231025163649.67ED31A9239@mollari.NetBSD.org>
Date: Wed, 25 Oct 2023 16:36:49 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: persistent file system snapshots aren't obvious
X-Send-Pr-Version: www-1.0

>Number:         57675
>Category:       kern
>Synopsis:       persistent file system snapshots aren't obvious
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 25 16:40:00 +0000 2023
>Last-Modified:  Mon Nov 06 12:20:01 +0000 2023
>Originator:     Taylor R Campbell
>Release:        current, 10, 9, 8, ...
>Organization:
The NetBSD Fssconfiguration
>Environment:
>Description:
If /path/to/backup resides on the file system mounted at /path, then

# fssconfig fssN /path /path/to/backup

creates a persistent snapshot, which continues to accrue rollback data even after you unconfigure fssN, unmount the file system and remount it, reboot, &c., until you unlink /path/

In this state, fssconfig -l makes it look like there are no active snapshots, and mounting the file system doesn't print anything about them, and as far as I know there's nothing short of dd | hexdump (not even dumpfs) that will print the list of active snapshot nodes.

It would be nice if there were some obvious way to remind the operator of active snapshots that are not only using space, but actively expanding whenever other writes happen on the file system.
>How-To-Repeat:

>Fix:
Yes, please!

>Audit-Trail:
From: "Juergen Hannken-Illjes" <hannken@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57675 CVS commit: src/usr.sbin/dumpfs
Date: Mon, 6 Nov 2023 12:18:59 +0000

 Module Name:	src
 Committed By:	hannken
 Date:		Mon Nov  6 12:18:59 UTC 2023

 Modified Files:
 	src/usr.sbin/dumpfs: dumpfs.c

 Log Message:
 Print the inode numbers of persistent snapshots.

 PR kern/57675 "persistent file system snapshots aren't obvious"


 To generate a diff of this commit:
 cvs rdiff -u -r1.68 -r1.69 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.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.