[augeas-devel] Re: [Augeas] #32: save fails on bindmounted files
Augeas
trac at fedorahosted.org
Wed Dec 10 05:30:02 UTC 2008
#32: save fails on bindmounted files
---------------------+------------------------------------------------------
Reporter: apevec | Owner: lutter
Type: defect | Status: assigned
Priority: major | Milestone: next
Component: Augeas | Version: 0.3.4
Resolution: | Keywords:
---------------------+------------------------------------------------------
Changes (by lutter):
* status: new => assigned
Comment:
Without having traced through the code, my guess is that this happens when
augeas tries to rename the temporary file (/etc/default/test123.augnew)
that it saved into to the final destination (/etc/default/test123)
Augeas assumes that two files that are known to be in the same directory
must be on the same device, too, and therefore expects rename(2) to work.
The man page for rename says that EBUSY can be returned if the source or
the target are a mount point, which is the issue here.
I am not sure how to fix that, especially since I want the change from old
file contents to new file contents to remain atomic, i.e. avoid the danger
that anybody might read a partially updated file. I'll have to dig into
that some more.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/32#comment:3>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list