Displaying 1 result from an estimated 1 matches for "zpool_read_label".
2006 Dec 18
1
zfs/fstyp slows down recognizing pcfs formatted floppies
...t stb;
+
+ /*
+ * don''t probe for zfs on small media (e.g. floppy) that is
+ * too small for a zpool.
+ */
+ if (fstat(h->fd, &stb) == 0 && stb.st_size < SPA_MINDEVSIZE) {
+ return (FSTYP_ERR_NO_MATCH);
+ }
if (zpool_read_label(h->fd, &h->config) != 0 ||
h->config == NULL) {
This message posted from opensolaris.org