Skip to content

Commit

Permalink
Allow write share with disk open
Browse files Browse the repository at this point in the history
Some disk monitor software opens it with read/write
sharing, which requires us to do the same.

Signed-off-by: Jorgen Lundman <lundman@lundman.net>
  • Loading branch information
lundman committed Nov 17, 2023
1 parent 8dee582 commit 36785b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/os/windows/zfs/vdev_disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
Expand Down

0 comments on commit 36785b1

Please sign in to comment.