From 58901439201d8a2b1f414e66ec4e80b428129ae0 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Wed, 21 Jul 2021 16:04:48 +0200 Subject: [PATCH] api: types: CHANGER_DRIVENUM_SCHEMA: increase maximum drives per changer to 255. 8 drives per changer was a rather arbitrary limitation and could well be reached in practice with big libraries. Altough 255 is still a arbirtrary limitation, this is much less likely to be reached in practice. Signed-off-by: Dominik Csapak --- src/api2/types/tape/drive.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api2/types/tape/drive.rs b/src/api2/types/tape/drive.rs index ecc65088..f50b1d5f 100644 --- a/src/api2/types/tape/drive.rs +++ b/src/api2/types/tape/drive.rs @@ -28,7 +28,7 @@ pub const LTO_DRIVE_PATH_SCHEMA: Schema = StringSchema::new( pub const CHANGER_DRIVENUM_SCHEMA: Schema = IntegerSchema::new( "Associated changer drive number (requires option changer)") .minimum(0) - .maximum(8) + .maximum(255) .default(0) .schema();