Data Structures | |
struct | jfsck_result |
The result of a jfsck() run. More... | |
Defines | |
#define | J_CLEANUP 1 |
Perform a journal cleanup. | |
Enumerations | |
enum | jfsck_return { J_ESUCCESS = 0, J_ENOENT = -1, J_ENOJOURNAL = -2, J_ENOMEM = -3, J_ECLEANUP = -4, J_EIO = -5 } |
jfsck() return values. More... | |
Functions | |
enum jfsck_return | jfsck (const char *name, const char *jdir, struct jfsck_result *res, unsigned int flags) |
Check and repair the given path. |
#define J_CLEANUP 1 |
enum jfsck_return |
enum jfsck_return jfsck | ( | const char * | name, | |
const char * | jdir, | |||
struct jfsck_result * | res, | |||
unsigned int | flags | |||
) |
Check and repair the given path.
The file MUST NOT be in use by any other thread or process. This requirement will be lifted in future releases.
name | path to the file to check | |
jdir | journal directory of the given file, use NULL for the default | |
res | structure where to store the result | |
flags | flags that change the checking behaviour, currently only J_CLEANUP is supported, which removes the journal directory after a successful recovery |
Definition at line 83 of file check.c.
Referenced by main().