Home
last modified time | relevance | path

Searched hist:ccf4ad7da0d9c30a962a116cb55bcd7d8c44b0fe (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/zonefs/
H A Dsuper.cdiff ccf4ad7da0d9c30a962a116cb55bcd7d8c44b0fe Fri Mar 20 07:36:54 CDT 2020 Damien Le Moal <damien.lemoal@wdc.com> zonfs: Fix handling of read-only zones

The write pointer of zones in the read-only consition is defined as
invalid by the SCSI ZBC and ATA ZAC specifications. It is thus not
possible to determine the correct size of a read-only zone file on
mount. Fix this by handling read-only zones in the same manner as
offline zones by disabling all accesses to the zone (read and write)
and initializing the inode size of the read-only zone to 0).

For zones found to be in the read-only condition at runtime, only
disable write access to the zone and keep the size of the zone file to
its last updated value to allow the user to recover previously written
data.

Also fix zonefs documentation file to reflect this change.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>