]> granicus.if.org Git - zfs/commit
Remove rdev packing
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 23 Feb 2011 23:13:03 +0000 (15:13 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 23 Feb 2011 23:13:03 +0000 (15:13 -0800)
commitdc1d7665c54de024cf5ded1b835482dbc5f1ae38
tree2e95fda6a54f284665cd1954aa15e3362407d319
parent99c564bc48710ff2a6edbfcad16d3c3b89773111
Remove rdev packing

Remove custom code to pack/unpack dev_t's.  Under Linux all dev_t's
are an unsigned 32-bit value even on 64-bit platforms.  The lower
20 bits are used for the minor number and the upper 12 for the major
number.

This means if your importing a pool from Solaris you may get strange
major/minor numbers.  But it doesn't really matter because even if
we add compatibility code to translate the encoded Solaris major/minor
they won't do you any good under Linux.  You will still need to
recreate the dev_t with a major/minor which maps to reserved major
numbers used under Linux.

Dropping this code also resolves 32-bit builds by removing the
offending 32-bit compatibility code.
module/zfs/zfs_znode.c