Bug 220991 - rpm transactions error due to fuse mounts
Summary: rpm transactions error due to fuse mounts
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 6
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact:
: 240011 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2006-12-30 03:06 UTC by Daniel Hokka Zakrisson
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-08-14 08:46:25 UTC
Type: ---

Attachments (Terms of Use)
Crude hack that fixes it for me (551 bytes, patch)
2006-12-30 03:06 UTC, Daniel Hokka Zakrisson
no flags Details | Diff

Description Daniel Hokka Zakrisson 2006-12-30 03:06:42 UTC
Description of problem:
Whenever I perform an rpm transaction on my computer, through yum or with rpm
directly, I get at least one error message of the kind;
error: failed to stat /home/daniel/public_html: Permission denied
as is to be expected, with the transaction being run by root and the mount
performed by my user (daniel).
As far as I can tell it doesn't cause any actual failure, i.e. the transaction
proceeds as it normally would, but from reading the code I suspect disk space
calculations aren't performed, and the error messages are starting to fill up my
cron job email (nightly yum).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. yum install fuse-sshfs
2. gpasswd -a <user> fuse
3. su - <user>
4. mkdir ~/test
5. sshfs <user>@<host>:<path> ~/test
6. exit
7. <perform rpm or yum transaction>

Actual results:
error: failed to stat /home/daniel/test: Permission denied

Expected results:
No error messages.

Additional info:
The attached patch is my half-hearted attempt at fixing it. I imagine it has
unwanted side-effects I did not consider though.

Comment 1 Daniel Hokka Zakrisson 2006-12-30 03:06:42 UTC
Created attachment 144572 [details]
Crude hack that fixes it for me

Comment 2 Jeff Johnson 2006-12-30 03:51:57 UTC
Yah, the crude hack looks like the right thing to do. rpm-4.4.8 is already skipping ESTALE errno's 
(common with clearcase, sigh), so my patch is slightly different than yours.

Fixed in rpm cvs, should be in 4.4.8-0.9 when built. Thanks for the patch.


Comment 3 Eric Harney 2007-05-14 19:35:22 UTC
*** Bug 240011 has been marked as a duplicate of this bug. ***

Comment 4 Panu Matilainen 2007-08-09 18:52:13 UTC
Upstream at rpm.org too... 

Comment 5 Panu Matilainen 2007-08-14 08:46:25 UTC
Fixed in next rawhide push. F7 will inherit the fix eventually, FC6 probably not
(as EOL is closing in) but not impossible.

Note You need to log in before you can comment on or make changes to this bug.