Jeffrey " writes: > For the part of my routines BackupPC_fixLinks and BackupPC_deleteFile > that actually try to make new links (or delete old ones), I would like > to make sure that nothing else is creating or deleting links to the > pool to avoid collisions. > > Specifically, I would like to be able to do the following: > 1. Query the server whether it is free > 2. If free tell the server to not launch anything else (i.e place > equivalent of lock file) > 3. Tell server when it can go back to launching other things > (i.e. remove lock file). > > I assume that BackupPC_nightly and BackupPC_link must do similar > things but I couldn't quite figure out how.
First this should be on the devel rather than user list. The BackupPC server maintains queue (CmdQueue) for commands that need to be run one-at-a-time (currently BackupPC_link). The BackupPC_nightly policy is hardcoded (ie: first wakeup when current command from CmdQueue is done). So you could add a server message that adds your command to CmdQueue and it will be run serially with other BackupPC_links and not overlap BackupPC_nightly. Craig ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
