From 36785b1e4d1b7fd8303df80ded6f8a9250b6f2e8 Mon Sep 17 00:00:00 2001 From: Jorgen Lundman Date: Fri, 17 Nov 2023 12:50:35 +0900 Subject: [PATCH] Allow write share with disk open Some disk monitor software opens it with read/write sharing, which requires us to do the same. Signed-off-by: Jorgen Lundman --- module/os/windows/zfs/vdev_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/os/windows/zfs/vdev_disk.c b/module/os/windows/zfs/vdev_disk.c index 76859142c52f..5a5b7263d003 100644 --- a/module/os/windows/zfs/vdev_disk.c +++ b/module/os/windows/zfs/vdev_disk.c @@ -248,7 +248,7 @@ vdev_disk_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, &iostatus, 0, FILE_ATTRIBUTE_NORMAL, - /* FILE_SHARE_WRITE | */ FILE_SHARE_READ, + FILE_SHARE_WRITE | FILE_SHARE_READ, FILE_OPEN, FILE_SYNCHRONOUS_IO_NONALERT | (spa_mode(spa) == SPA_MODE_READ ? 0 :