camcontrol.c (352295) | camcontrol.c (352297) |
---|---|
1/* 2 * Copyright (c) 1997-2007 Kenneth D. Merry 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1997-2007 Kenneth D. Merry 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: stable/11/sbin/camcontrol/camcontrol.c 352295 2019-09-13 15:20:30Z mav $"); | 30__FBSDID("$FreeBSD: stable/11/sbin/camcontrol/camcontrol.c 352297 2019-09-13 15:21:36Z mav $"); |
31 32#include <sys/ioctl.h> 33#include <sys/stdint.h> 34#include <sys/types.h> 35#include <sys/stat.h> 36#include <sys/endian.h> 37#include <sys/sbuf.h> 38 --- 1525 unchanged lines hidden (view full) --- 1564 else 1565 printf("yes any value\n"); 1566 } else { 1567 printf("no\n"); 1568 } 1569 } else { 1570 printf("no\n"); 1571 } | 31 32#include <sys/ioctl.h> 33#include <sys/stdint.h> 34#include <sys/types.h> 35#include <sys/stat.h> 36#include <sys/endian.h> 37#include <sys/sbuf.h> 38 --- 1525 unchanged lines hidden (view full) --- 1564 else 1565 printf("yes any value\n"); 1566 } else { 1567 printf("no\n"); 1568 } 1569 } else { 1570 printf("no\n"); 1571 } |
1572 printf("Trusted Computing %s\n", 1573 ((parm->tcg & 0xc000) == 0x4000) && (parm->tcg & ATA_SUPPORT_TCG) ? 1574 "yes" : "no"); |
|
1572 printf("encrypts all user data %s\n", 1573 parm->support3 & ATA_ENCRYPTS_ALL_USER_DATA ? "yes" : "no"); 1574 printf("Sanitize "); 1575 if (parm->multi & ATA_SUPPORT_SANITIZE) { 1576 printf("yes\t\t%s%s%s\n", 1577 parm->multi & ATA_SUPPORT_BLOCK_ERASE_EXT ? "block, " : "", 1578 parm->multi & ATA_SUPPORT_OVERWRITE_EXT ? "overwrite, " : "", 1579 parm->multi & ATA_SUPPORT_CRYPTO_SCRAMBLE_EXT ? "crypto" : ""); --- 8562 unchanged lines hidden --- | 1575 printf("encrypts all user data %s\n", 1576 parm->support3 & ATA_ENCRYPTS_ALL_USER_DATA ? "yes" : "no"); 1577 printf("Sanitize "); 1578 if (parm->multi & ATA_SUPPORT_SANITIZE) { 1579 printf("yes\t\t%s%s%s\n", 1580 parm->multi & ATA_SUPPORT_BLOCK_ERASE_EXT ? "block, " : "", 1581 parm->multi & ATA_SUPPORT_OVERWRITE_EXT ? "overwrite, " : "", 1582 parm->multi & ATA_SUPPORT_CRYPTO_SCRAMBLE_EXT ? "crypto" : ""); --- 8562 unchanged lines hidden --- |