summaryrefslogtreecommitdiff
path: root/drivers/net/wireguard/netlink.c
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2020-03-20 21:36:54 +0900
committerDamien Le Moal <damien.lemoal@wdc.com>2020-03-25 11:28:26 +0900
commitccf4ad7da0d9c30a962a116cb55bcd7d8c44b0fe (patch)
tree7dd69481e52106a8dceeaad3ee2157d34e640ce7 /drivers/net/wireguard/netlink.c
parent0dda2ddb7ded1395189e95d43106469687c07795 (diff)
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>
Diffstat (limited to 'drivers/net/wireguard/netlink.c')
0 files changed, 0 insertions, 0 deletions