/* E.g. "a/b" is an ancestor of "a/b/c" but not of "a/bc/d". As a special case, We treat s1 as ancestor of s2 if they are same!  */
static int v9fs_path_is_ancestor(V9fsPath *s1, V9fsPath *s2)
/* E.g. "a/b" is an ancestor of "a/b/c" but not of "a/bc/d". As a special case, We treat s1 as ancestor of s2 if they are same!  */
static int v9fs_path_is_ancestor(V9fsPath *s1, V9fsPath *s2)
{
    if (!strncmp(s1->data, s2->data, s1->size - 1)) {
        if (s2->data[s1->size - 1] == '\0' || s2->data[s1->size - 1] == '/') {
            return 1;
        }
    }
    return 0;
}