[regression 4.6-rc1] autofs lookup fails with -ENOENT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lookup of autofs files starts failing with -ENOENT on 4.6-rc1.

git-bisect tells commit e3c13928086f1 "namei: massage lookup_slow() to
be usable by lookup_one_len_unlocked()" as the first bad commit.

With the change, walk_component() does this:

    path.dentry = lookup_slow(&nd->last, nd->path.dentry,
                                          nd->flags);
    if (IS_ERR(path.dentry))
            return PTR_ERR(path.dentry);
    if (unlikely(d_is_negative(path.dentry))) {
            dput(path.dentry);
            return -ENOENT;
    }
    path.mnt = nd->path.mnt;
    err = follow_managed(&path, nd);
    if (unlikely(err < 0))
            return err;

It returns -ENOENT before handling automount in follow_managed().
Shouldn't it call follow_managed() before checking d_is_negative()?

--
Jun'ichi Nomura, NEC Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux