Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107809601
D27075.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
571 B
Referenced Files
None
Subscribers
None
D27075.diff
View Options
Index: head/usr.sbin/bhyve/pci_virtio_block.c
===================================================================
--- head/usr.sbin/bhyve/pci_virtio_block.c
+++ head/usr.sbin/bhyve/pci_virtio_block.c
@@ -523,7 +523,7 @@
sc->vbsc_cfg.vbc_writeback = 0;
sc->vbsc_cfg.max_discard_sectors = VTBLK_MAX_DISCARD_SECT;
sc->vbsc_cfg.max_discard_seg = VTBLK_MAX_DISCARD_SEG;
- sc->vbsc_cfg.discard_sector_alignment = sectsz / VTBLK_BSIZE;
+ sc->vbsc_cfg.discard_sector_alignment = MAX(sectsz, sts) / VTBLK_BSIZE;
/*
* Should we move some of this into virtio.c? Could
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 8:49 AM (20 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15937305
Default Alt Text
D27075.diff (571 B)
Attached To
Mode
D27075: bhyve: virtio DISCARD doesn't work for 'sectorsize=512/4096'
Attached
Detach File
Event Timeline
Log In to Comment