loader: xdr_array is missing count
The integer arrays are encoded in nvlist as counted array <count, i0, i1...>, loader xdr_array() is missing the count. This will affect the pool import when there are hole devices in pool.
Also fix the new data add and print functions.
can now read pool with hole_array property (DATA_TYPE_UINT64_ARRAY).
nvlist_print() (when used) does output nvlist with array of integers
nvstore rpool -t DATA_TYPE_UINT64_ARRAY test 1234 does create property 'test' with value 1234 (confirmed with eeprom -bp).
Updated by Electric Monk over 1 year ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 0b14c19974d0288384932500f606afeadc2d6009 Author: Toomas Soome <firstname.lastname@example.org> Date: 2020-12-07T07:37:37.000Z 13345 loader: xdr_array is missing count Reviewed by: Andy Fiddaman <email@example.com> Approved by: Robert Mustacchi <firstname.lastname@example.org>