Skip to content

Commit

Permalink
feat: Adding force flag to set sector size function
Browse files Browse the repository at this point in the history
Adding a force flag to the set sector size function to try working around recovering drives that were interrupted during the sector size change.

[#145]

Signed-off-by: Tyler Erickson <tyler.erickson@seagate.com>
  • Loading branch information
vonericsen committed May 7, 2024
1 parent 75a7f75 commit 870c1b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion subprojects/opensea-operations
5 changes: 3 additions & 2 deletions utils/C/openSeaChest/openSeaChest_Format.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// Global Variables //
////////////////////////
const char *util_name = "openSeaChest_Format";
const char *buildVersion = "3.1.0";
const char *buildVersion = "3.2.0";

////////////////////////////
// functions to declare //
Expand Down Expand Up @@ -164,6 +164,7 @@ int32_t main(int argc, char *argv[])
DEPOP_MAX_LBA_LONG_OPT,
NVM_FORMAT_LONG_OPT,
NVM_FORMAT_OPTIONS_LONG_OPTS,
FORCE_LONG_OPT,
LONG_OPT_TERMINATOR
};

Expand Down Expand Up @@ -1467,7 +1468,7 @@ int32_t main(int argc, char *argv[])
{
printf("Set Sector Size to %" PRIu32 "\n", SET_SECTOR_SIZE_SIZE);
}
switch (set_Sector_Configuration(&deviceList[deviceIter], SET_SECTOR_SIZE_SIZE))
switch (set_Sector_Configuration_With_Force(&deviceList[deviceIter], SET_SECTOR_SIZE_SIZE, FORCE_FLAG))
{
case SUCCESS:
if (VERBOSITY_QUIET < toolVerbosity)
Expand Down

0 comments on commit 870c1b0

Please sign in to comment.