The zone is configured with a lifetime_ of Env::WLTH_NOT_SET during initialization, but if the zone already has data(such as remount), it should be configured as the maximum value of the lifetime_ of the files in it.
Due to the fact that the lifetime_ of zones is related to the zone allocation algorithm, which will always return LIFETIME_DIFF_NOT_GOOD as the zone_lifetime is Env::WLTH_NOT_SET
https://github.com/westerndigitalcorporation/zenfs/blob/b04ca0cb49c03ecf193367e314e9accf21c937f6/fs/zbd_zenfs.cc#L51-L64
The zone is configured with a
lifetime_
ofEnv::WLTH_NOT_SET
during initialization, but if the zone already has data(such as remount), it should be configured as the maximum value of thelifetime_
of the files in it.https://github.com/westerndigitalcorporation/zenfs/blob/b04ca0cb49c03ecf193367e314e9accf21c937f6/fs/zbd_zenfs.cc#L393-L413
Due to the fact that the
lifetime_
of zones is related to the zone allocation algorithm, which will always returnLIFETIME_DIFF_NOT_GOOD
as thezone_lifetime
isEnv::WLTH_NOT_SET