lvm2/cmdline_large_minor.diff

14 lines
347 B
Diff
Raw Normal View History

--- tools/lvmcmdline.c
+++ tools/lvmcmdline.c 2008/02/20 10:45:12
@@ -265,8 +265,8 @@
if (!_get_int_arg(a, &ptr) || (*ptr) || (a->sign == SIGN_MINUS))
return 0;
- if (a->i_value > 255) {
- log_error("Minor number outside range 0-255");
+ if (a->i_value > 1048575) {
+ log_error("Minor number outside range 0-1048575");
return 0;
}