Skip over any /dev/ prefix so that values appropriate for rc/etc.d/dumpon will
match GEOM device names. If a 'dumpdev' kenv does not start with '/dev/', the
behavior is unchanged.
Per discussion on freebsd-current@.
Differential D3725
geom_dev: Use kenv 'dumpdev' in the same way as rc/etc.d/dumpon cem on Sep 23 2015, 5:30 PM. Authored by Tags None Referenced Files
Subscribers
Details Skip over any /dev/ prefix so that values appropriate for rc/etc.d/dumpon will Per discussion on freebsd-current@. buildkernel succeeds.
Diff Detail
Event TimelineComment Actions Looks ok to me.
Comment Actions This is a simple enough, bikeshed-grade change, so here it goes.
Comment Actions Is clang allowed to assume anything about the behaviour of strlen in a freestanding environment? Comment Actions Maybe not, at least without some sort of hint. I think it should be able to assume strlen matches standard C strlen expectations with some sort of hint. (Alternatively, I don't know that there is a lot of value in allowing non-conforming strlen functions even in a freestanding environment. I'd be okay with Clang assuming standard strlen behavior in freestanding mode and erroring hard if an invalid implementation is provided.) |