Those patches were tested and work. Currently in the process of minimizing the code required in main.c . Those 4 patches mostly add support for more ATA Security commands to smartmontools.