- Use the correct type in the linux bitops emulation.

Submitted by:	Maxim Ignatenko <gelraen.ua@gmail.com>
 - Correctly handle various edge cases in sysfs emulation.

Sponsored by:	EMC / Isilon Storage Division