+static bool
+canHandleInternal(struct MountInfo const *mnt)
+{
+ static char const * FS[] = {
+ "tmpfs", "sysfs", "proc", "sockfs", "pipefs", "futexfs",
+ "inotifyfs", "devpts", "ext3", "ext2", "ramfs",
+ "hugetlbfs", "usbfs", "binfmt_misc",
+ 0
+ };
+ char const ** i;
+
+ if (!mnt) return false;
+ else if ((mnt->flag & (MS_BIND|MS_MOVE))) return true;
+ else if (mnt->type==0) return false;
+
+ for (i=FS+0; *i!=0; ++i)
+ if (strcmp(mnt->type, *i)==0) return true;
+
+ return false;
+}
+