Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue14702] os.makedirs breaks under autofs directories

 

 

First page Previous page 1 2 Next page Last page  View All Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

May 17, 2012, 6:19 PM

Post #26 of 36 (56 views)
Permalink
[issue14702] os.makedirs breaks under autofs directories [In reply to]

Martin v. Löwis <martin [at] v> added the comment:

I agree that the proposed solutions are hacks, and still propose to close this as "won't fix".

I think this is a bug in Linux. mkdir("/net/prodigy/tmp") ought to trigger the mount, then fail with EEXIST.

----------
nosy: +loewis

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14702>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 17, 2012, 11:46 PM

Post #27 of 36 (53 views)
Permalink
[issue14702] os.makedirs breaks under autofs directories [In reply to]

Charles-François Natali <neologix [at] free> added the comment:

Alright, closing for good then.
Andrew, if you want to get this fixed, you should report this to the autofs folks, because it's definitely not a Python bug.

----------
stage: -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14702>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 18, 2012, 8:33 AM

Post #28 of 36 (51 views)
Permalink
[issue14702] os.makedirs breaks under autofs directories [In reply to]

Andrew McNabb <amcnabb [at] mcnabbs> added the comment:

I see no evidence that this is a bug in Linux, and I think it's ridiculous to close it when a trivial one-line fix is available. I won't reopen it because it's obvious no one wants to address this. :(

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14702>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 18, 2012, 8:45 AM

Post #29 of 36 (51 views)
Permalink
[issue14702] os.makedirs breaks under autofs directories [In reply to]

Andrew McNabb <amcnabb [at] mcnabbs> added the comment:

I posted a bug report with the kernel here:

https://bugzilla.kernel.org/show_bug.cgi?id=43262

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14702>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 19, 2012, 6:57 AM

Post #30 of 36 (51 views)
Permalink
[issue14702] os.makedirs breaks under autofs directories [In reply to]

Charles-François Natali <neologix [at] free> added the comment:

> I see no evidence that this is a bug in Linux,

"""
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.
Event if it wasn't done, calling mkdir() ought to trigger the mount.
So this is *definitely* as bug in autofs.

> and I think it's ridiculous to close it when a trivial one-line fix is available.

Which one-line fix do you propose?

> I won't reopen it because it's obvious no one wants to address this. :(

It's not that we don't want to address this, but rather that we want
to avoid introducing hacks to work around OS bugs.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14702>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 19, 2012, 7:11 AM

Post #31 of 36 (52 views)
Permalink
[issue14702] os.makedirs breaks under autofs directories [In reply to]

Hynek Schlawack <hs [at] ox> 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.

> Event if it wasn't done, calling mkdir() ought to trigger the mount.

I’m not sure if/where the behavior is defined – let’s what the Linux
people say.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14702>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 19, 2012, 7:17 AM

Post #32 of 36 (52 views)
Permalink
[issue14702] os.makedirs breaks under autofs directories [In reply to]

Martin v. Löwis <martin [at] v> 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>
<http://bugs.python.org/issue14702>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 19, 2012, 7:20 AM

Post #33 of 36 (53 views)
Permalink
[issue14702] os.makedirs breaks under autofs directories [In reply to]

Hynek Schlawack <hs [at] ox> 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.

Sure, I was refering (as I hoped that my quoting would indicate) to the
stat on /net/prodigy, not the mkdir. I commented on the mkdir in the
next paragraph.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14702>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 21, 2012, 8:35 AM

Post #34 of 36 (52 views)
Permalink
[issue14702] os.makedirs breaks under autofs directories [In reply to]

Andrew McNabb <amcnabb [at] mcnabbs> added the comment:

> Which one-line fix do you propose?

Doing a stat("/net/prodigy/tmp") before mkdir("/net/prodigy/tmp") is an extremely simple workaround.

Of course, I would love to see clear documentation of how the kernel is defined to behave in this situation. It would certainly be intuitive for mkdir("/net/prodigy/tmp") to force a mount of "/net/prodigy", but defined behavior isn't always intuitive. :)

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14702>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 21, 2012, 10:48 AM

Post #35 of 36 (50 views)
Permalink
[issue14702] os.makedirs breaks under autofs directories [In reply to]

Martin v. Löwis <martin [at] v> added the comment:

> Of course, I would love to see clear documentation of how the kernel
> is defined to behave in this situation. It would certainly be
> intuitive for mkdir("/net/prodigy/tmp") to force a mount of
> "/net/prodigy", but defined behavior isn't always intuitive. :)

Maybe I'm confused, but the presence of "/net/prodigy" is *not*
the issue here, and what gets mounted is *not* "/net/prodigy",
but "/net/prodigy/tmp" (do "mount" to confirm or dispute).

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14702>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 21, 2012, 10:58 AM

Post #36 of 36 (49 views)
Permalink
[issue14702] os.makedirs breaks under autofs directories [In reply to]

Andrew McNabb <amcnabb [at] mcnabbs> added the comment:

> Maybe I'm confused, but the presence of "/net/prodigy" is *not*
> the issue here, and what gets mounted is *not* "/net/prodigy",
> but "/net/prodigy/tmp" (do "mount" to confirm or dispute).

No, /net/prodigy is the mountpoint in this case:

amcnabb [at] sag:~ :) mount |grep prodigy
prodigy:/ on /net/prodigy type nfs4 ([redacted])

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14702>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

First page Previous page 1 2 Next page Last page  View All Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.