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. Changes to v2: - Clear ZONEFS_ZONE_OPEN flag on error - Fix missing newline 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 | 198 +++++++++++++++++++++++++-- fs/zonefs/zonefs.h | 10 ++ 3 files changed, 213 insertions(+), 10 deletions(-) -- 2.26.2