|
From: <di...@us...> - 2010-11-21 19:32:17
|
Revision: 707
http://safekeep.svn.sourceforge.net/safekeep/?rev=707&view=rev
Author: dimi
Date: 2010-11-21 19:32:11 +0000 (Sun, 21 Nov 2010)
Log Message:
-----------
Warn if ionice is not available
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2010-11-21 19:28:19 UTC (rev 706)
+++ safekeep/trunk/safekeep 2010-11-21 19:32:11 UTC (rev 707)
@@ -874,11 +874,14 @@
args.extend(['nice', '-n' + str(nice)])
ionice_cmd = 'ionice'
- if ionice and ionice != 'none' and try_to_run(ionice_cmd):
- if ionice is 'idle':
- args.extend([ionice_cmd, '-c3', '-t'])
+ if ionice and ionice != 'none':
+ if try_to_run(ionice_cmd):
+ if ionice is 'idle':
+ args.extend([ionice_cmd, '-c3', '-t'])
+ else:
+ args.extend([ionice_cmd, '-c2', '-n' + ionice, '-t'])
else:
- args.extend([ionice_cmd, '-c2', '-n' + ionice, '-t'])
+ warn('ionice(1) not available, ignoring ionice.adjustment')
args.extend(['rdiff-backup'])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|