I'm mounting a snapshot using mdconfig, then mount like this: mdconfig -a -t vnode -f /home/.snap/4 -u 0 mount /dev/md0 /snapshot/home mount (with no args) shows this: /dev/md0 on /snapshot/home (ufs, local, read-only) # mdconfig -l -u md0 md0 vnode 23503425 KBytes How can I see (to verify) what file md0 is based on? Perhaps this should be part of the mdconfig -l output? Furthermore, could we have that info when we run mount (with no args) and df? Or might that break something that depends on their output? Michael Grant
Michael Grant <mg-fbsd3@grant.org> wrote:> # mdconfig -l -u md0 > md0 vnode 23503425 KBytes-current has support for showing the file name: # mdconfig -lu0 md0 vnode 3.0M /home/dima/test I don't know when this will be MFC'd.> Furthermore, could we have that info when we run mount (with no args) > and df? Or might that break something that depends on their output?The file name used for the disk is not a property of the file system, so it would be inappropriate to show it in mount. It will point to md0, however, and mdconfig can tell you how it's backed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 155 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050529/7e5d3ae2/attachment.bin