add bsd/disk module and get_size_in_bytes function
Description
in 13 I committed a change to more efficiently wipe disks because we had a painful race condition. To do this, I removed the dependency of using 3rd party tools (subprocess) to wipe disks. However, I had to hard-code the DIOCGMEDIASIZE ioctl value. This ticket is to add the necessary method to the py-bsd module and import the DIOCGMEDIASIZE ioctl from the sys/disk.h file so this won't break (hopefully) on subsequent freeBSD releases.
in 13 I committed a change to more efficiently wipe disks because we had a painful race condition. To do this, I removed the dependency of using 3rd party tools (subprocess) to wipe disks. However, I had to hard-code the DIOCGMEDIASIZE ioctl value. This ticket is to add the necessary method to the py-bsd module and import the DIOCGMEDIASIZE ioctl from the sys/disk.h file so this won't break (hopefully) on subsequent freeBSD releases.