Changeset 94201 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 12, 2022 7:29:49 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r94200 r94201 209 209 { "clonehd", USAGE_S_NEWCMD, HELP_CMD_CLONEMEDIUM, handleCloneMedium, 0 }, /* backward compatibility */ 210 210 { "clonevdi", USAGE_S_NEWCMD, HELP_CMD_CLONEMEDIUM, handleCloneMedium, 0 }, /* backward compatibility */ 211 { "encryptmedium", USAGE_ ENCRYPTMEDIUM, VBMG_CMD_TODO, handleEncryptMedium, 0 },211 { "encryptmedium", USAGE_S_NEWCMD,HELP_CMD_ENCRYPTMEDIUM, handleEncryptMedium, 0 }, 212 212 { "checkmediumpwd", USAGE_MEDIUMENCCHKPWD, VBMG_CMD_TODO, handleCheckMediumPassword, 0 }, 213 213 { "createvm", USAGE_S_NEWCMD, HELP_CMD_CREATEVM, handleCreateVM, 0 }, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r94200 r94201 132 132 USAGE_I_REPAIRHD, 133 133 USAGE_NATNETWORK, 134 USAGE_ENCRYPTMEDIUM,135 134 USAGE_MEDIUMENCCHKPWD, 136 135 USAGE_USBDEVSOURCE, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r94200 r94201 2008 2008 pszFilenameOrUuid = ValueUnion.psz; 2009 2009 else 2010 return errorSyntax( USAGE_ENCRYPTMEDIUM,Disk::tr("Invalid parameter '%s'"), ValueUnion.psz);2010 return errorSyntax(Disk::tr("Invalid parameter '%s'"), ValueUnion.psz); 2011 2011 break; 2012 2012 … … 2015 2015 { 2016 2016 if (RT_C_IS_PRINT(c)) 2017 return errorSyntax( USAGE_ENCRYPTMEDIUM,Disk::tr("Invalid option -%c"), c);2017 return errorSyntax(Disk::tr("Invalid option -%c"), c); 2018 2018 else 2019 return errorSyntax( USAGE_ENCRYPTMEDIUM,Disk::tr("Invalid option case %i"), c);2019 return errorSyntax(Disk::tr("Invalid option case %i"), c); 2020 2020 } 2021 2021 else if (c == VERR_GETOPT_UNKNOWN_OPTION) 2022 return errorSyntax( USAGE_ENCRYPTMEDIUM,Disk::tr("unknown option: %s\n"), ValueUnion.psz);2022 return errorSyntax(Disk::tr("unknown option: %s\n"), ValueUnion.psz); 2023 2023 else if (ValueUnion.pDef) 2024 return errorSyntax( USAGE_ENCRYPTMEDIUM,"%s: %Rrs", ValueUnion.pDef->pszLong, c);2024 return errorSyntax("%s: %Rrs", ValueUnion.pDef->pszLong, c); 2025 2025 else 2026 return errorSyntax( USAGE_ENCRYPTMEDIUM,Disk::tr("error: %Rrs"), c);2026 return errorSyntax(Disk::tr("error: %Rrs"), c); 2027 2027 } 2028 2028 } 2029 2029 2030 2030 if (!pszFilenameOrUuid) 2031 return errorSyntax( USAGE_ENCRYPTMEDIUM,Disk::tr("Disk name or UUID required"));2031 return errorSyntax(Disk::tr("Disk name or UUID required")); 2032 2032 2033 2033 if (!pszPasswordNew && !pszPasswordOld) 2034 return errorSyntax( USAGE_ENCRYPTMEDIUM,Disk::tr("No password specified"));2034 return errorSyntax(Disk::tr("No password specified")); 2035 2035 2036 2036 if ( (pszPasswordNew && !pszNewPasswordId) 2037 2037 || (!pszPasswordNew && pszNewPasswordId)) 2038 return errorSyntax(USAGE_ENCRYPTMEDIUM, 2039 Disk::tr("A new password must always have a valid identifier set at the same time")); 2038 return errorSyntax(Disk::tr("A new password must always have a valid identifier set at the same time")); 2040 2039 2041 2040 if (pszPasswordNew) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r94200 r94201 639 639 "\n", SEP); 640 640 641 if (enmCommand == USAGE_ENCRYPTMEDIUM || enmCommand == USAGE_S_ALL)642 RTStrmPrintf(pStrm,643 "%s encryptmedium %s <uuid|filename>\n"644 " [--newpassword <file>|-]\n"645 " [--oldpassword <file>|-]\n"646 " [--cipher <cipher identifier>]\n"647 " [--newpasswordid <password identifier>]\n"648 "\n", SEP);649 650 641 if (enmCommand == USAGE_MEDIUMENCCHKPWD || enmCommand == USAGE_S_ALL) 651 642 RTStrmPrintf(pStrm,
Note:
See TracChangeset
for help on using the changeset viewer.