]> www.infradead.org Git - users/hch/nvme-cli.git/commit
fix data_size and metadata_size types
authorHeitor Ricardo Alves de Siqueira <halves@linux.vnet.ibm.com>
Fri, 22 Apr 2016 19:21:33 +0000 (16:21 -0300)
committerHeitor Ricardo Alves de Siqueira <halves@linux.vnet.ibm.com>
Fri, 22 Apr 2016 19:57:52 +0000 (16:57 -0300)
commit01d1ae33883e4e2538654efd41bf8fe3ceb2d76b
treee2d0be0219d1de274a71e258140428f8d783d28d
parentd6748bfba3a98ffde5790ea632345d2f3caec95e
fix data_size and metadata_size types

The data_size and metadata_size fields in the config struct are declared as
__u32, but should actually be __u64. The current types cause issues in the
argument parsing functions depending on machine architecture and endianness. In
ppc64, using __u32 causes "data size not provided" errors due to the way writes
are being done by argconfig_parse() at src/argconfig.c. Changing the types to
__u64 should fix this behaviour and is in accordance to the CFG_LONG_SUFFIX
flag.

Signed-off-by: Heitor Ricardo Alves de Siqueira <halves@linux.vnet.ibm.com>
nvme.c