Add -p switch to "zpool get"
[zfs.git] / patches / e2fsprogs-1.41.4-zfs-probe-uberblock.patch
1 Detect a ZFS filesystem by looking for valid uberblocks.
2
3 This support will appear in an upstream version of e2fsprogs.  For the
4 moment however you will still need to locally patch you e2fsprogs packages.
5 This patch applies cleanly to fc11's e2fsprogs-*-1.41.4-10 and should
6 apply easily enough to the e2fsprogs from other distros.
7
8 --- e2fsprogs.orig/lib/blkid/probe.c    2009-01-20 09:06:31.000000000 -0800
9 +++ e2fsprogs/lib/blkid/probe.c 2009-10-06 10:16:37.000000000 -0700
10 @@ -1359,10 +1361,18 @@
11    { "iso9660", 32,      1,  5, "CD001",                probe_iso9660 },
12    { "iso9660", 32,      9,  5, "CDROM",                probe_iso9660 },
13    { "jfs",     32,      0,  4, "JFS1",                 probe_jfs },
14 -  { "zfs",       8,     0,  8, "\0\0\x02\xf5\xb0\x07\xb1\x0c", probe_zfs },
15 -  { "zfs",       8,     0,  8, "\x0c\xb1\x07\xb0\xf5\x02\0\0", probe_zfs },
16 -  { "zfs",     264,     0,  8, "\0\0\x02\xf5\xb0\x07\xb1\x0c", probe_zfs },
17 -  { "zfs",     264,     0,  8, "\x0c\xb1\x07\xb0\xf5\x02\0\0", probe_zfs },
18 +  { "zfs",     128,     0,  8, "\0\0\0\0\0\xba\xb1\x0c", probe_zfs },
19 +  { "zfs",     132,     0,  8, "\0\0\0\0\0\xba\xb1\x0c", probe_zfs },
20 +  { "zfs",     136,     0,  8, "\0\0\0\0\0\xba\xb1\x0c", probe_zfs },
21 +  { "zfs",     128,     0,  8, "\x0c\xb1\xba\0\0\0\0\0", probe_zfs },
22 +  { "zfs",     132,     0,  8, "\x0c\xb1\xba\0\0\0\0\0", probe_zfs },
23 +  { "zfs",     136,     0,  8, "\x0c\xb1\xba\0\0\0\0\0", probe_zfs },
24 +  { "zfs",     384,     0,  8, "\0\0\0\0\0\xba\xb1\x0c", probe_zfs },
25 +  { "zfs",     388,     0,  8, "\0\0\0\0\0\xba\xb1\x0c", probe_zfs },
26 +  { "zfs",     392,     0,  8, "\0\0\0\0\0\xba\xb1\x0c", probe_zfs },
27 +  { "zfs",     384,     0,  8, "\x0c\xb1\xba\0\0\0\0\0", probe_zfs },
28 +  { "zfs",     388,     0,  8, "\x0c\xb1\xba\0\0\0\0\0", probe_zfs },
29 +  { "zfs",     392,     0,  8, "\x0c\xb1\xba\0\0\0\0\0", probe_zfs },
30    { "hfsplus",  1,      0,  2, "BD",                   probe_hfsplus },
31    { "hfsplus",  1,      0,  2, "H+",                   probe_hfsplus },
32    { "hfsplus",  1,      0,  2, "HX",                   probe_hfsplus },