]> git.proxmox.com Git - mirror_spl-debian.git/blobdiff - module/spl/spl-kstat.c
New upstream version 0.7.11
[mirror_spl-debian.git] / module / spl / spl-kstat.c
index 6970fcc8a84b5c77a010b0a984dbb9c57ef23bfa..f9b9015e7254cfd817b48bbb7fce2138fa183196 100644 (file)
@@ -388,7 +388,8 @@ kstat_seq_start(struct seq_file *f, loff_t *pos)
 
        ksp->ks_snaptime = gethrtime();
 
-       if (!n && kstat_seq_show_headers(f))
+       if (!(ksp->ks_flags & KSTAT_FLAG_NO_HEADERS) && !n &&
+           kstat_seq_show_headers(f))
                return (NULL);
 
        if (n >= ksp->ks_ndata)
@@ -538,7 +539,6 @@ __kstat_create(const char *ks_module, int ks_instance, const char *ks_name,
        ASSERT(ks_module);
        ASSERT(ks_instance == 0);
        ASSERT(ks_name);
-       ASSERT(!(ks_flags & KSTAT_FLAG_UNSUPPORTED));
 
        if ((ks_type == KSTAT_TYPE_INTR) || (ks_type == KSTAT_TYPE_IO))
                ASSERT(ks_ndata == 1);