GEOM_PART: a quick update on logical partitions

Marcel Moolenaar xcllnt at mac.com
Mon Feb 2 11:16:58 PST 2009


All,

In case people are wondering: I'm working on proper support for
logical partitions. This should also allow us to create and
modify them. Of course when you add or remove a partition, the
index changes and consequently the device name. I still need
to find a good solution for that. Currently I'm thinking that
we should create the device special file that contains the
sector offset (which is the one constant) and create compatibility
symlinks. For example:

	/dev/da0s2.00000000
	/dev/da0s2.0834F7A0
	/dev/da0s5 -> /dev/da0s2.00000000
	/dev/da0s6 -> /dev/da0s2.0834F7A0

The idea is that the logical name (i.e. the symlink) change when
you add or remove a partition, but that all references (i.e. mount
information) are against the fixed name.

In any case: I hope to have something in a few weeks. If you know
of a good way to deal with adding/removing partitions, let me know.

FYI,

-- 
Marcel Moolenaar
xcllnt at mac.com





More information about the freebsd-current mailing list