[dm-devel] [PATCH 2/5] libmultipath: change reservation_key to a uint64_t

2017-09-15 Thread Benjamin Marzinski
The reservation key is currently being stored as any array of 8 unsigned chars. This is exactly the same in-memory representation as a big endian 64 bit integer. However, the code for dealing with a big endian 64 bit integer is much simpler, so switch to use that instead. Signed-off-by: Benjamin

Re: [dm-devel] [PATCH 2/5] libmultipath: change reservation_key to a uint64_t

2017-09-08 Thread Benjamin Marzinski
On Fri, Sep 08, 2017 at 11:09:17PM +0200, Martin Wilck wrote: > On Fri, 2017-09-08 at 13:45 -0500, Benjamin Marzinski wrote: > > The reservation key is currently being stored as any array of 8 > > unsigned > > chars. This is exactly the same in-memory representation as a big > > endian 64 bit

Re: [dm-devel] [PATCH 2/5] libmultipath: change reservation_key to a uint64_t

2017-09-08 Thread Martin Wilck
On Fri, 2017-09-08 at 13:45 -0500, Benjamin Marzinski wrote: > The reservation key is currently being stored as any array of 8 > unsigned > chars. This is exactly the same in-memory representation as a big > endian 64 bit integer. However, the code for dealing with a big > endian > 64 bit integer

[dm-devel] [PATCH 2/5] libmultipath: change reservation_key to a uint64_t

2017-09-08 Thread Benjamin Marzinski
The reservation key is currently being stored as any array of 8 unsigned chars. This is exactly the same in-memory representation as a big endian 64 bit integer. However, the code for dealing with a big endian 64 bit integer is much simpler, so switch to use that instead. Signed-off-by: Benjamin