Jan Hendrik Mangold
2006-Sep-21 20:08 UTC
[zfs-discuss] how do I find out if I am on a zfs filesystem
This may be a dumb question, but is there a way to find out if an arbitrary filesystem is actually a zfs filesystem? Like if I were to write a script that needs to do different steps based on the underlying filesystem. Any pointers welcome. -- Jan Hendrik Mangold Sun Microsystems 650-585-5484 (x81371) "idle hands are the developers workshop" -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20060921/18d23433/attachment.html>
Richard Elling - PAE
2006-Sep-21 20:23 UTC
[zfs-discuss] how do I find out if I am on a zfs filesystem
mount -v -- richard Jan Hendrik Mangold wrote:> This may be a dumb question, but is there a way to find out if an > arbitrary filesystem is actually a zfs filesystem? Like if I were to > write a script that needs to do different steps based on the underlying > filesystem. > > Any pointers welcome. > > -- > Jan Hendrik Mangold > Sun Microsystems > 650-585-5484 (x81371)
Mark Shellenbaum
2006-Sep-21 20:30 UTC
[zfs-discuss] how do I find out if I am on a zfs filesystem
Jan Hendrik Mangold wrote:> This may be a dumb question, but is there a way to find out if an > arbitrary filesystem is actually a zfs filesystem? Like if I were to > write a script that needs to do different steps based on the underlying > filesystem. > > Any pointers welcome. >$ df -n <path>
Darren J Moffat
2006-Sep-21 20:34 UTC
[zfs-discuss] how do I find out if I am on a zfs filesystem
Jan Hendrik Mangold wrote:> This may be a dumb question, but is there a way to find out if an > arbitrary filesystem is actually a zfs filesystem? Like if I were to > write a script that needs to do different steps based on the underlying > filesystem.From scripting look at the /etc/mnttab file. From C code use statvfs and look at f_fstr. -- Darren J Moffat
Jan Hendrik Mangold
2006-Sep-21 20:40 UTC
[zfs-discuss] how do I find out if I am on a zfs filesystem
On Sep 21, 2006, at 1:30 PM, Mark Shellenbaum wrote:> Jan Hendrik Mangold wrote: >> This may be a dumb question, but is there a way to find out if an >> arbitrary filesystem is actually a zfs filesystem? Like if I were >> to write a script that needs to do different steps based on the >> underlying filesystem. >> Any pointers welcome. > > $ df -n <path>thank you should have read the man page for df ... ;>) -- Jan Hendrik Mangold Sun Microsystems 650-585-5484 (x81371) "idle hands are the developers workshop" -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20060921/eb31404d/attachment.html>