From root@koellers.net  Mon Mar 17 11:41:53 2008
Return-Path: <root@koellers.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id F15D71065676
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Mar 2008 11:41:53 +0000 (UTC)
	(envelope-from root@koellers.net)
Received: from dolly.dts-online.net (dolly.dts-online.net [87.245.1.125])
	by mx1.freebsd.org (Postfix) with ESMTP id B530D8FC29
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Mar 2008 11:41:53 +0000 (UTC)
	(envelope-from root@koellers.net)
Received: from door.koellers.net (static-87-245-54-6.teleos-web.de [87.245.54.6])
	by dolly.dts-online.net (Postfix) with ESMTP id 4FD079A3379
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Mar 2008 12:41:52 +0100 (CET)
Received: from door.koellers.net (localhost [127.0.0.1])
	by door.koellers.net (8.14.2/8.13.8) with ESMTP id m2HBfpiC002005;
	Mon, 17 Mar 2008 12:41:51 +0100 (CET)
	(envelope-from root@door.koellers.net)
Received: (from root@localhost)
	by door.koellers.net (8.14.2/8.14.2/Submit) id m2HBfpwT002004;
	Mon, 17 Mar 2008 12:41:51 +0100 (CET)
	(envelope-from root)
Message-Id: <200803171141.m2HBfpwT002004@door.koellers.net>
Date: Mon, 17 Mar 2008 12:41:51 +0100 (CET)
From: Charlie & <root@koellers.net>
Reply-To: Charlie & <root@koellers.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: root@koellers.net
Subject: snapinfo (and related tools?) only work for toplevel mount points
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         121779
>Category:       bin
>Synopsis:       [ufs] snapinfo(8) (and related tools?) only work for toplevel mount points
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    jh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 17 11:50:01 UTC 2008
>Closed-Date:    Sat Feb 19 14:28:02 UTC 2011
>Last-Modified:  Sat Feb 19 14:28:02 UTC 2011
>Originator:     Charlie &
>Release:        FreeBSD 6.3-RELEASE-p1 i386
>Organization:
Computing Center, University of Bielefeld, Germany
>Environment:
System: FreeBSD door.koellers.net 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #1: Tue Feb 19 20:02:44 CET 2008 root@door.koellers.net:/backup/obj/usr/src/sys/DOOR i386

>Description:

snapinfo only works for top level mount points:

 mount | grep opt
/dev/ar0s1e on /opt (ufs, local, soft-updates, acls)

# : snapinfo -a
/.snap/daily.0
/.snap/weekly.0
/var/.snap/hourly.3
/var/.snap/hourly.2
/var/.snap/hourly.1
/var/.snap/hourly.0
/opt/.snap/weekly.0
/opt/.snap/daily.5
/opt/.snap/daily.4
/opt/.snap/daily.3
/opt/.snap/hourly.7
/opt/.snap/hourly.6
/opt/.snap/hourly.5
/opt/.snap/daily.1
/opt/.snap/hourly.4
/opt/.snap/hourly.3
/opt/.snap/hourly.2
/opt/.snap/hourly.1
/opt/.snap/daily.0
/opt/.snap/hourly.0

But if you mount a fs e.g. in /mnt like in FreeNAS or KDE snapinfo fails:

 mount | grep opt
/dev/ar0s1e on /mnt/opt (ufs, local, soft-updates, acls)

168914 : snapinfo -a
/.snap/daily.0
/.snap/weekly.0
/var/.snap/hourly.3
/var/.snap/hourly.2
/var/.snap/hourly.1
/var/.snap/hourly.0
ufs_disk_fillout: Unknown error: 0

This prevents using snapshots in this case. I've not fully analyzed if this
also hits the snapshot tools http://people.freebsd.org/~rse/snapshot/.


>How-To-Repeat:

See above

>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 18 02:58:14 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121779 
State-Changed-From-To: open->feedback 
State-Changed-By: jh 
State-Changed-When: Sat Feb 19 13:38:24 UTC 2011 
State-Changed-Why:  
I couldn't reproduce this. Can you still reproduce on a supported release? 


Responsible-Changed-From-To: freebsd-fs->jh 
Responsible-Changed-By: jh 
Responsible-Changed-When: Sat Feb 19 13:38:24 UTC 2011 
Responsible-Changed-Why:  
Track. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121779 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Sat Feb 19 14:28:00 UTC 2011 
State-Changed-Why:  
Submitter can't reproduce anymore. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121779 
>Unformatted:
