On Sun, May 27, 2018 at 02:22:48PM +0200, Robert Kausch wrote: > RAW_PART is always 2, thus 'c', in OpenBSD, but it's architecture dependent, > 2 or 3, in NetBSD [1]. So it would be a good idea to use RAW_PART instead of > a fixed 'c' or 'd' when looking for devices.
Thanks for pointing this out. This seems a more principled way than I was going to do: +#ifdef __OpenBSD__ + char *partitions = "c"; +#else + char *partitions = "cd"; +#endif -- Best Regards Edd Barrett http://www.theunixzoo.co.uk
