Re: postrun umount and LOCK file clearing doesn't work

Miek Gieben <[email protected]> Mon, 5 May 2003 20:38:04 +0200
Newsgroups gmane.comp.sysutils.backup.hdup.devel
Message-ID <[email protected]>
[ seem to have pushed to wrong button on the mailman page, "discard" instead
  of "accept". So the mail wasn't forwarded to hdup-dev ]

[On 05 May, @18:16, Tom wrote in "Re: [hdup-dev] postrun umount  ..."]
> > Subject: Re: [hdup-dev] postrun umount and LOCK file clearing doesn't work
> 
> Variant on this is that mounting using "prerun" doesn't fly.
> 
> > > When I use Hdup I have it mount and unmount the /backup/ filesystem in
> > > its pre and post commands.  Like this:
> > > [DEBUG] postrun: [umount /backup]
> 
> I want to mount the /backup filesystem as part of the "prerun" commands.
> This doesn't currently work because Hdup is looking for the previous
> backup list before running the "prerun" commands.  Would it be okay of
> the "prerun" commands were run before locking and before looking for the
> previous backup list?

I see your point. I think it is worth considering, the only drawback that I 
can find is that two prerun scripts can "cross" each other (deadlock, race,
etc.)

But I also think that outweights the benefits of mounting something like
/backup before doing the backup.

I will change it.

grtz Miek