Extract PFS null mounts from anywhere in the filesystem, instead of just
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 11 Mar 2009 17:45:38 +0000 (10:45 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 11 Mar 2009 17:45:38 +0000 (10:45 -0700)
from the /pfs subdirectory.

Submitted-by: pgeorgi (via bugs)
sbin/hammer/cmd_cleanup.c

index 9053532..ea84eeb 100644 (file)
@@ -115,8 +115,9 @@ hammer_cmd_cleanup(char **av, int ac)
                                continue;
                        if ((strncmp(ptr, "(hammer,", 8) == 0) ||
                            ((strncmp(ptr, "(null,", 6) == 0) &&
-                            (strncmp(fs, "/pfs", 4) == 0)))
+                            (strstr(fs, "/@@0x") != NULL))) {
                                do_cleanup(path);
+                       }
                }
                fclose(fp);
        } else {