NetBSD-Bugs archive

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

Re: bin/57103: ls prints error message with autofs

On Sun, Dec 11, 2022 at 12:45:01PM +0000, Robert Elz wrote:
>      Date:        Sun, 11 Dec 2022 10:10:01 +0000 (UTC)
>      From: (Michael van Elst)
>      Message-ID:  <>
>    |  Either autofs should learn the pathconf operation or ls should learn
>    |  that the error EOPNOTSUPP for this operation should be handled silently.
>  Probably both.

I've committed a fix to autofs to use genfs_pathconf().

Unlike FreeBSD, we fall back to return EOPNOSUPP if a filesystem
hasn't implemented a method. FreeBSD has individual defaults for
each method (mostly the 'generic' implementations) and the
default for vop_pathconf is to return EINVAL unconditionally.

N.B. mfs calls genfs_badop, i.e. triggers a panic. This should probably
be changed.

                                Michael van Elst
                                "A potential Snark may lurk in every tree."

Home | Main Index | Thread Index | Old Index