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 v3: - Introduce unlocked zonefs_io_error - Rework failure of zone close on file close Changes to v2: - Clear ZONEFS_ZONE_OPEN flag on error - Fix missing newline Johannes Thumshirn (4): zonefs: introduce helper for zone management zonefs: provide zonefs_io_error variant that can be called with i_truncate_mutex held zonefs: open/close zone on file open/close zonefs: document the explicit-open mount option Documentation/filesystems/zonefs.rst | 15 ++ fs/zonefs/super.c | 239 ++++++++++++++++++++++++--- fs/zonefs/zonefs.h | 10 ++ 3 files changed, 244 insertions(+), 20 deletions(-) -- 2.26.2