https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211028

--- Comment #8 from Dexuan Cui <de...@microsoft.com> ---
(In reply to Edward Tomasz Napierala from comment #7)
Hi Edword,
Yes, exactly.

After the disk capacity change, if I do "camcontrol reprobe da1", gpart can see
 both the capacity & free space are updated.

After the disk capacity change, if first I open /dev/da1 for reading (e.g. dd
if=/dev/da1 of=tmp bs=512 count=1), da driver notices "Capacity data has
changed", and gpart can see the new capacity, but the "free" space shown by
gpart is still the old. Next, "camcontrol reprobe da1" can't help and the
"free" space shown by gpart is still the old. Next, opening da1 for writing
(e.g. dd if=/dev/da1 of=/dev/da1 bs=512 count=0) can make gpart show the new
"free" space.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to