[issue14702] os.makedirs breaks under autofs directories

Martin v. Löwis report at bugs.python.org
Sat May 19 16:17:20 CEST 2012


Martin v. Löwis <martin at v.loewis.de> added the comment:

>> """
>> stat("/net/prodigy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
>> mkdir("/net/prodigy/tmp", 0777)         = -1 EACCES (Permission denied)
>> """
>>
>> As you can see, a stat() is already done on /net/prodigy.
>
> To be fair, that shouldn’t trigger a mount. Otherwise a `ls -l` on /net
> would mount all volumes.

Not sure what "that" is: my view is that mkdir should trigger the mount,
/net/prodigy is already there and available. ls -l doesn't invoke mkdir(2),
so you wouldn't get a mount storm when it is mkdir that triggers the mount.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14702>
_______________________________________


More information about the Python-bugs-list mailing list