gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Re: extended attributes


From: Jan Hudec
Subject: Re: [Gnu-arch-users] Re: extended attributes
Date: Wed, 7 Jan 2004 14:32:42 +0100
User-agent: Mutt/1.5.4i

On Wed, Jan 07, 2004 at 10:42:23 +1100, Brian May wrote:
> >>>>> "Jan" == Jan Hudec <address@hidden> writes:
> 
>     >> For atomic file updates, rename(2) does too much.  It modifies
>     >> or creates a directory entry to have default ownership,
>     >> permissions and time values.
> 
>     Jan> Do I need to remind you, that *directory entry* does NOT have
>     Jan> any ownership, permission and time values? A *directory
>     Jan> entry* has exactly a name and a number of inode it point
>     Jan> to. At least for POSIX compliant filesystems.
> 
> What is needed is a system call (or user level call?) that creates a
> new file with all the properties (times, owners, permissions, extended
> attributes) based on an existing file. So you would say:
> 
> create file a.tmp from a
> write to a.tmp
> rename a.tmp to a
> 
> And most of the problems would be solved (I think!).

Unfortunately, such a system call does not exist...

-------------------------------------------------------------------------------
                                                 Jan 'Bulb' Hudec 
<address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]