thin_metadata_size: check for block size > 0
This commit is contained in:
parent
66d8dd4e28
commit
0e8c077415
@ -37,6 +37,7 @@ end
|
|||||||
|
|
||||||
def check_opts(opts)
|
def check_opts(opts)
|
||||||
abort "#{$prg} - 3 arguments required!" if opts.length < 3
|
abort "#{$prg} - 3 arguments required!" if opts.length < 3
|
||||||
|
abort "#{$prg} - block size must be > 0" if opts[:blocksize] <= 0
|
||||||
abort "#{$prg} - poolsize must be much larger than blocksize" if opts[:poolsize] < opts[:blocksize]
|
abort "#{$prg} - poolsize must be much larger than blocksize" if opts[:poolsize] < opts[:blocksize]
|
||||||
abort "#{$prg} - maximum number of thin provisioned devices must be > 0" if opts[:maxthins].nil? || opts[:maxthins] == 0
|
abort "#{$prg} - maximum number of thin provisioned devices must be > 0" if opts[:maxthins].nil? || opts[:maxthins] == 0
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user