* Johannes Thumshirn <johannes.thumshirn@xxxxxxx> [200515 10:41]: > If a user submits a zone management ioctl from user-space, like a zone > reset and a file-system (like zonefs or f2fs) is mounted on the zoned > block device, the zone will get reset and the file-system's cached value > of the zone's write-pointer becomes invalid. > > Subsequent writes to this zone from the file-system will result in > unaligned writes and the drive will error out. "error out" meaning what exactly? > Open the block device file in exclusive mode for submitting these ioctls. > If a file-system is mounted the kernel will return -EBUSY and we can't > continue issuing the ioctl. Isn't this something the kernel should enforce, then? What's to stop anybody from calling the ioctl from another tool, without using O_EXCL? Chris