Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

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.

Problem/Justification

None

Impact

None

Activity

Show:

Caleb October 5, 2021 at 6:44 PM

Complete

Details

Assignee

Reporter

Labels

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created October 5, 2021 at 6:35 PM
Updated July 6, 2022 at 8:56 PM
Resolved November 11, 2021 at 6:31 PM

Flag notifications