zfs set <property=value> <filesystem|volume|snapshot>
root@UA4300D-spa:~/hanhuakai/pro_07/0707# zpool set readonly=on hhk
cannot set property for 'hhk': property 'readonly' can only be set at import time
红色出错信息在哪个函数中执行输出???
5040 int 5041 set_callback(zpool_handle_t *zhp, void *data) 5042 { 5043 int error; 5044 set_cbdata_t *cb = (set_cbdata_t *)data; 5045 5046 error = zpool_set_prop(zhp, cb->cb_propname, cb->cb_value); 5047 5048 if (!error) 5049 cb->cb_any_successful = B_TRUE; 5050 5051 return (error); 5052 }
调用的库函数 zpool_set_prop 在该函数中会打印出出错信息。
在python中调用时,如果出现该错误信息,将会输出到何处?