linux/fs/zonefs
Damien Le Moal 96eca145cb zonefs: Do not ignore explicit_open with active zone limit
A zoned device may have no limit on the number of open zones but may
have a limit on the number of active zones it can support. In such
case, the explicit_open mount option should not be ignored to ensure
that the open() system call activates the zone with an explicit zone
open command, thus guaranteeing that the zone can be written.

Enforce this by ignoring the explicit_open mount option only for
devices that have both the open and active zone limits equal to 0.

Fixes: 87c9ce3ffe ("zonefs: Add active seq file accounting")
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2022-06-08 15:38:44 +09:00
..
Kconfig zonefs: select CONFIG_CRC32 2021-01-04 09:06:42 +09:00
Makefile zonefs: Export open zone resource information through sysfs 2022-04-21 08:37:51 +09:00
super.c zonefs: Do not ignore explicit_open with active zone limit 2022-06-08 15:38:44 +09:00
sysfs.c zonefs: Add active seq file accounting 2022-04-21 08:37:56 +09:00
trace.h zonefs: add tracepoints for file operations 2021-02-16 09:59:54 +09:00
zonefs.h zonefs: Add active seq file accounting 2022-04-21 08:37:56 +09:00