X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fvolser%2Fvos.c;h=2078e198986d026a0384f482bbf94c7fa1b5316f;hp=1be394e8d0f6f99184a64370c922f89ae2edf8ec;hb=54c0a3f3e6575fa5af39ddd797d5381c36b48001;hpb=2510a6ec675669739a625305bcc11ab2ad671122 diff --git a/src/volser/vos.c b/src/volser/vos.c index 1be394e..2078e19 100644 --- a/src/volser/vos.c +++ b/src/volser/vos.c @@ -1691,7 +1691,7 @@ SetFields(register struct cmd_syndesc *as, void *arock) if (as->parms[1].items) { /* -max */ - code = util_GetInt32(as->parms[1].items->data, &info.maxquota); + code = util_GetHumanInt32(as->parms[1].items->data, &info.maxquota); if (code) { fprintf(STDERR, "invalid quota value\n"); return code; @@ -1902,13 +1902,7 @@ CreateVolume(register struct cmd_syndesc *as, void *arock) } if (as->parms[3].items) { - if (!IsNumeric(as->parms[3].items->data)) { - fprintf(STDERR, "Initial quota %s should be numeric.\n", - as->parms[3].items->data); - return EINVAL; - } - - code = util_GetInt32(as->parms[3].items->data, "a); + code = util_GetHumanInt32(as->parms[3].items->data, "a); if (code) { fprintf(STDERR, "vos: bad integer specified for quota.\n"); return code;