Last modified: 5 May 2016
Tool Name: h5clear
Syntax:
h5clear file

Purpose:
To clear the file consistency flags field in the superblock of the file specified in the command line.

Description:
With the implementation of file locking, the library uses the file consistency flags field in the superblock to mark a file as in writing or SWMR writing mode when a file is opened. The library will clear this field when the file closes.

However, a situation may occur where an open file is closed without going through the normal library file closing procedure, and this field will not be cleared as a result. An example would be if an application program crashed. This situation will prevent a user from opening the file. The h5clear tool will clear the file consistency flags field, and the user can then open the file.

Exit Status:
0 Succeeded.
> 0     An error occurred.

History:
Release Change
1.10.0 Tool introduced in this release.