Introduce a mount option for explicitly opening a device's zones when opening the seq zone file for writing. This way we prevent resource exhaustion on devices that export a maximum open zones limit. Johannes Thumshirn (3): zonefs: introduce helper for zone management zonefs: open/close zone on file open/close zonefs: document the explicit-open mount option Documentation/filesystems/zonefs.rst | 15 +++ fs/zonefs/super.c | 187 +++++++++++++++++++++++++-- fs/zonefs/zonefs.h | 10 ++ 3 files changed, 202 insertions(+), 10 deletions(-) -- 2.26.2