[OpenAFS-devel] ENOTDIR vs ENOTEMPTY

Sam Hartman hartmans@mit.edu
Thu, 29 Mar 2001 19:02:05 -0500 (EST)


So, there is code in src/afs/LINUX/osi_vnodeops.c that maps EEXISTS to
ENOTDIR, claiming that Linux likes to get ENOTDIR for non-empty
directories.  Yet I actually get directory not empty (ENOTEMPTY) from
a directory when I do this on a local filesystem.

What's the deal?  Is there actually a Linux system that wants NOTDIR?
This seems kind of stupid.

Can I submit a patch to map to ENOTEMPTY instead of ENOTDIR?