[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: adventures in booting
- From: Daniel Veillard <veillard redhat com>
- To: Development discussions related to Fedora Core <fedora-devel-list redhat com>
- Subject: Re: adventures in booting
- Date: Thu, 2 Dec 2004 18:40:06 -0500
On Thu, Dec 02, 2004 at 04:59:49PM -0500, Colin Walters wrote:
> On Thu, 2004-12-02 at 16:38 -0500, Daniel Veillard wrote:
>
> > If the kernel has an atomic rename system call then it can be done
> > without race, if not that will be a very serious issue.
>
> It has an atomic rename for files; but you can't atomically change a
> directory that has content. Or am I missing something? Not to mention
> this would break things like RPM verification.
I think you're missing something. It is possible to copy the file
somewhere else and then rename it to the original name, then update
the m_time and rpm -Va should not say anything, the checksum and file
system attributes should look alike.
The copy to a single new directory is a trick to force allocation
in the same filesystem zone (if the FS has zones).
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]