]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/bacula-sd-2disk.conf.in
ebl Modify disk-changer to check if slot contains something before
[bacula/bacula] / regress / scripts / bacula-sd-2disk.conf.in
index fd5f973f1a67af2fc248adec98df838d2bad2f37..95376203c3cec94c32fc23617409123e0199aee5 100644 (file)
@@ -35,7 +35,7 @@ Autochanger {
   Name = DDS-4
   Changer Device = @disk_drive@/conf
   Changer Command ="@scriptdir@/disk-changer %c %o %S %a %d"
-  Device = Drive-0
+  Device = Drive-0, Drive-1
 }
 
 Device {
@@ -51,6 +51,53 @@ Device {
 # Maximum File Size = 1000000
 }
 
+Device {
+  Name = Drive-1                   # 
+  Device Type = File
+  Media Type = DDS-4
+  Archive Device = @disk_drive@/drive0
+  AutomaticMount = yes;               # when device opened, read it
+  Autochanger = yes
+  Drive Index = 1
+  AlwaysOpen = yes;
+  RemovableMedia = yes;
+# Maximum File Size = 1000000
+}
+
+
+Autochanger {
+  Name = Virtual
+  Changer Device = /dev/null
+  Changer Command =""
+  Device = Virtual-1, Virtual-2
+}
+
+Device {
+  Name = Virtual-1
+  Device Type = File
+  Media Type = Disk
+  Archive Device = @tmpdir@
+  AutomaticMount = yes;               # when device opened, read it
+  Autochanger = yes
+  Drive Index = 0
+  AlwaysOpen = yes;
+  RemovableMedia = yes;
+# Maximum File Size = 1000000
+}
+
+Device {
+  Name = Virtual-2
+  Device Type = File
+  Media Type = Disk
+  Archive Device = @tmpdir@
+  AutomaticMount = yes;               # when device opened, read it
+  Autochanger = yes
+  Drive Index = 1
+  AlwaysOpen = yes;
+  RemovableMedia = yes;
+# Maximum File Size = 1000000
+}
+
 Device {
   Name = FileStorage
   Media Type = FileMedia