NVList.update() method
It seems that NVList.update() method is unusable now, because internally it calls NVList.add() with 2 parameters, but actual NVList.add() requires 3 parameters. It is not clear whether it would be possible to infer proper data types from python types at all. So, is this unfinished work-in-progress code or is this dead code? Or am I missing something?
I am currently in the process of rewriting a lot of things (check the 'rewrite' branch for what i'm actively working on)... I will look into it as I'm starting to head towards re-implementing libnvpair as I got this notification.
7bd6472dea6338 reimplemented NVList mostly (though it's untested until I can rework zpool a bit more).. mind that it no longer features a NVList.update() , as it's much easier to just do:
[NVList.add(key, data_type, value) for key, data_type_value in listing]
The old NVList.update functionality pretty much did the same anyhow.. and there's no proper way to detect which data type you want to use.. maybe at some point in the future we can make a guessing system for the data types so this becomes more easily available.
Thanks!