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

Re: Distinct transactions



Hi,

On Sun, Nov 11, 2001 at 07:20:30AM -0500, Charlie Woloszynski wrote:
> Mike:
> 
> But the symlink is not atomic.  when I use strace on a "ln -s -f " the system does
> an unlink then symlink.  So, if the system crashes in the middle of these actions,
> the system will not have a 'proper' configuration.

Then create the symlink as a new name and rename it over the old one.

> P.S.  Is the problem with hard links of directories a limitation of ext2/ext3?

No, most Unix-like filesystems have the same restriction.  (And most
non-unix-like filesystems don't do hard links at all.)

Cheers,
 Stephen





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