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

Andrey V. Elsukov <a...@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |a...@freebsd.org

--- Comment #3 from Andrey V. Elsukov <a...@freebsd.org> ---
So, disk provider has changed its size, I assume `camcontrol reprobe` has
initiated g_disk_resize event.
How it should work in my understanding:
1. `camcontrol reprobe` triggers calling of disk_resize()
2. disk_resize() calls g_disk_resize() event
3. GPART class receives resize event, g_part_resize() should be called
4. GPART_MBR's method g_part_mbr_resize() should be called
5. "GEOM_PART: da1 was automatically resized. Use `gpart commit da1` to save
changes or `gpart undo da1` to revert them." message should be printed in the
console.

If you don't see the message from p.5 - something doesn't work as expected.
You can use the following dtrace command to debug:

# kldload dtraceall
# dtrace -n 'dtrace -n 'fbt::*disk_resize:entry fbt::g_part_*resize:entry
{stack(5);}'

-- 
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