Bug 121779 - [ufs] snapinfo(8) (and related tools?) only work for toplevel mount points
Summary: [ufs] snapinfo(8) (and related tools?) only work for toplevel mount points
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 6.3-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jaakko Heinonen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-17 11:50 UTC by Charlie &
Modified: 2011-02-19 14:28 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie & 2008-03-17 11:50:01 UTC
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
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-05-18 03:58:14 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 2 Jaakko Heinonen freebsd_committer freebsd_triage 2011-02-19 13:38:24 UTC
State Changed
From-To: open->feedback

I couldn't reproduce this. Can you still reproduce on a supported release? 


Comment 3 Jaakko Heinonen freebsd_committer freebsd_triage 2011-02-19 13:38:24 UTC
Responsible Changed
From-To: freebsd-fs->jh

Track.
Comment 4 Jaakko Heinonen freebsd_committer freebsd_triage 2011-02-19 14:28:00 UTC
State Changed
From-To: feedback->closed

Submitter can't reproduce anymore.