summaryrefslogtreecommitdiff
path: root/lib/raidfile/raidfile-config
diff options
context:
space:
mode:
Diffstat (limited to 'lib/raidfile/raidfile-config')
-rwxr-xr-xlib/raidfile/raidfile-config24
1 files changed, 14 insertions, 10 deletions
diff --git a/lib/raidfile/raidfile-config b/lib/raidfile/raidfile-config
index 41f38cd5..3af59c93 100755
--- a/lib/raidfile/raidfile-config
+++ b/lib/raidfile/raidfile-config
@@ -1,12 +1,13 @@
#!/usr/bin/perl
-# distribution boxbackup-0.11rc1 (svn version: 2023_2024)
+# distribution boxbackup-0.11rc2 (svn version: 2072)
#
-# Copyright (c) 2003 - 2006
+# Copyright (c) 2003 - 2008
# Ben Summers and contributors. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
+#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
@@ -54,14 +55,17 @@ Setup raidfile config utility.
Bad command line parameters.
Usage:
- raidfile-config config-dir block-size dir0 [dir1 dir2]
+ raidfile-config config-dir block-size dir0 [dir1 dir2]
-config-dir usually /etc/box
-block-size must be a power of two, and usually the block or fragment size of your filing system
-dir0, dir1, dir2 are the directories used as the root of the raid file system
+Parameters:
+ config-dir is usually /etc/box
+ block-size must be a power of two, and usually the block or
+ fragment size of your file system
+ dir0, dir1, dir2 are the directories used as the root of the raid
+ file system
-If only one directory is specified, then userland RAID is disabled. Specifying three directories
-enables it.
+If only one directory is specified, then userland RAID is disabled.
+Specifying three directories enables it.
__E
exit(1);
@@ -95,7 +99,7 @@ while(1)
# check that it doesn't already exist
if(-f $conf)
{
- die "$conf already exists. Delete and try again"
+ die "$conf already exists. Delete and try again";
}
# create directory
@@ -110,7 +114,7 @@ if($#dirs == 0)
{
$dirs[1] = $dirs[0];
$dirs[2] = $dirs[0];
- print "WARNING: userland RAID is disabled.\n"
+ print "WARNING: userland RAID is disabled.\n";
}
# write the file