xfs_io: don't assign cvtnum() return to unsigned var
cvtnum() returns -1LL for unparseable values, but if we
assign to a signed var, we can't test it:
There are problems in fadvise, mincore & madvise.
xfs_io> mincore 0 xxx
range (0:0) is beyond mapping (0:
1048576)
For mincore & madvise, se a temporary signed var so we
can detect the error:
xfs_io> mincore 0 xxx
non-numeric length argument -- xxx
and also test whether it may overflow a size_t for
mincore & madvise.
For fadvise, posix_fadvise64 wants an off_t anyway so just
switch to that.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>