On 4/20/17 5:22 PM, Eric Sandeen wrote: > On 4/11/17 12:22 PM, Bill O'Donnell wrote: >> +/* >> + * Find the FS table entry for the given path. Compare >> + * the path to mountpoint entries in the table. >> + */ >> +struct fs_path * >> +fs_table_lookup_mount( >> + const char *dir) >> +{ >> + uint i; >> + dev_t dev = 0; >> + >> + if (fs_device_number(dir, &dev)) >> + return NULL; >> + >> + for (i = 0; i < fs_count; i++) { >> + if (strcmp(fs_table[i].fs_dir, dir) == 0) >> + return &fs_table[i]; Oh, and I think we need to test the flags on the entry to be sure that it is a FS_MOUNT_POINT as well, and not a project path. -Eric >> + } >> + return NULL; >> +} >> + >> static int >> fs_table_insert( >> char *dir, >> > -- > To unsubscribe from this list: send the line "unsubscribe linux-xfs" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html