1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/tools
Zdenek Kabelac efa17cae24 cmdline: avoid overrun on very large numbers.
When large size number (>2^31) is given on command line it could be
misdetected and in certain cases lead to wrongly casted number.

So make sure all cases always do set _MAX number in case the value would
not fit within the supported range instead of getting some random value
within the range.

In most cases this was not a problem to detect, but i.e. stripesize
parameter might have been fooled by certain large numbers.
2017-11-27 10:34:30 +01:00
..
.exported_symbols generate liblvm2cmd exported symbols too 2010-06-25 18:23:10 +00:00
.gitignore tools: add generated headers to .gitignore 2017-03-10 13:13:41 +00:00
args.h lvmconfig: Add options to produce file preamble 2017-08-05 16:23:34 +01:00
cmdnames.h doc: change fsf address 2016-01-21 12:11:37 +01:00
command-lines.in commands: drop secondary for lvconvert --type snapshot 2017-10-25 22:02:54 +02:00
command.c persistent filter: Skip import before rescan 2017-11-13 19:45:16 +00:00
command.h cleanup: fix some typos 2017-07-10 14:58:33 +02:00
commands.h persistent filter: Skip import before rescan 2017-11-13 19:45:16 +00:00
dmsetup.c dmsetup: hide integrity encryption keys on table output 2017-11-10 15:23:00 +01:00
dumpconfig.c lvmconfig: Add options to produce file preamble 2017-08-05 16:23:34 +01:00
errors.h tools: Introduce exit code EINIT_FAILED. 2017-07-26 23:18:03 +01:00
formats.c doc: change fsf address 2016-01-21 12:11:37 +01:00
license.inc pre-release 2017-03-28 16:11:35 +01:00
lv_props.h commands: new method for defining commands 2017-02-13 08:20:10 -06:00
lv_types.h commands: recognize raid variations 2017-02-13 08:20:10 -06:00
lvchange.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
lvconvert_poll.c debug: more display_lvname usage 2017-06-27 08:28:36 +02:00
lvconvert_poll.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvconvert.c cleanup: update error messages 2017-11-24 16:09:59 +01:00
lvcreate.c pool: drop create spare on error path 2017-10-30 11:53:39 +01:00
lvdisplay.c process_each_lv: add check_single_lv function 2017-02-13 08:20:10 -06:00
lvextend.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2cmd-static.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2cmd.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2cmd.h tools: Introduce exit code EINIT_FAILED. 2017-07-26 23:18:03 +01:00
lvm2cmdline.h commands: fix memory debug for cmd defs 2017-05-01 15:27:14 -05:00
lvm-static.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm.c debug: tracing error path 2017-06-27 00:27:36 +02:00
lvmcmdlib.c commands: fix memory debug for cmd defs 2017-05-01 15:27:14 -05:00
lvmcmdline.c cmdline: avoid overrun on very large numbers. 2017-11-27 10:34:30 +01:00
lvmdiskscan.c lvmdiskscan: Remove unnecessary read. 2017-11-16 19:13:03 +00:00
lvpoll.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
lvreduce.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvremove.c process_each_lv: add check_single_lv function 2017-02-13 08:20:10 -06:00
lvrename.c toollib: make it possible to also process internal VGs, add 'include_internal' switch to process_each_vg fn 2016-06-20 11:33:42 +02:00
lvresize.c lvresize: support passing --yes to fsadm 2017-06-21 14:03:29 +02:00
lvscan.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
Makefile.in makefiles: fixing linking 2017-08-01 11:53:30 +02:00
polldaemon.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
pvchange.c lvmetad: two phase vg_update 2016-06-28 02:30:31 +01:00
pvck.c doc: change fsf address 2016-01-21 12:11:37 +01:00
pvcreate.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
pvdisplay.c lvmetad: two phase vg_update 2016-06-28 02:30:31 +01:00
pvmove_poll.c cleanup: update error messages 2017-11-24 16:09:59 +01:00
pvmove_poll.h doc: change fsf address 2016-01-21 12:11:37 +01:00
pvmove.c pvmove: remove unusued code 2017-11-15 21:00:29 +01:00
pvremove.c lvmetad: two phase vg_update 2016-06-28 02:30:31 +01:00
pvresize.c pvcreate: add prompt when setting dev size 2017-04-27 13:25:41 -05:00
pvscan.c cleanup: use more common FMTd64 type 2017-03-27 20:50:19 +02:00
reporter.c cleanup: add braces in macro 2017-07-20 11:18:29 +02:00
segtypes.c doc: change fsf address 2016-01-21 12:11:37 +01:00
stub.h tools: Drop unused e2fsadm refs (replaced by fsadm). 2017-03-16 02:24:39 +00:00
tags.c doc: change fsf address 2016-01-21 12:11:37 +01:00
tool.h doc: change fsf address 2016-01-21 12:11:37 +01:00
toollib.c toollib: improve stripes args reading 2017-11-27 10:34:30 +01:00
toollib.h cache: enable usage of --cachemetadataformat 2017-03-10 19:33:01 +01:00
tools.h persistent filter: Skip import before rescan 2017-11-13 19:45:16 +00:00
vals.h commands: use correct relative signs with mirror option 2017-03-10 15:41:29 -06:00
vgcfgbackup.c coverity: avoid memleak 2017-11-07 21:26:09 +01:00
vgcfgrestore.c lvmetad: two phase vg_update 2016-06-28 02:30:31 +01:00
vgchange.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
vgck.c toollib: make it possible to also process internal VGs, add 'include_internal' switch to process_each_vg fn 2016-06-20 11:33:42 +02:00
vgconvert.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
vgcreate.c vgcreate: allow pvcreate force option 2016-07-06 14:10:53 -05:00
vgdisplay.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
vgexport.c tools: Use arg_is_set instead of arg_count. 2016-06-21 22:24:52 +01:00
vgextend.c commands: new method for defining commands 2017-02-13 08:20:10 -06:00
vgimport.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
vgimportclone.c command struct: remove command name refs 2017-02-13 08:20:10 -06:00
vgmerge.c vgsplit: Fix detection of moved PVs. 2017-10-27 22:53:43 +01:00
vgmknodes.c process_each_lv: add check_single_lv function 2017-02-13 08:20:10 -06:00
vgreduce.c cleanup: add missing WARNING into log_warn 2016-11-25 15:01:27 +01:00
vgremove.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
vgrename.c vgrename: use long enough buffer for path 2017-03-30 00:38:41 +02:00
vgscan.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
vgsplit.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00