MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zil_reset

Function zil_reset

freebsd/contrib/openzfs/module/zfs/zil.c:3643–3655  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

3641
3642/* ARGSUSED */
3643int
3644zil_reset(const char *osname, void *arg)
3645{
3646 int error;
3647
3648 error = zil_suspend(osname, NULL);
3649 /* EACCES means crypto key not loaded */
3650 if ((error == EACCES) || (error == EBUSY))
3651 return (SET_ERROR(error));
3652 if (error != 0)
3653 return (SET_ERROR(EEXIST));
3654 return (0);
3655}
3656
3657EXPORT_SYMBOL(zil_alloc);
3658EXPORT_SYMBOL(zil_free);

Callers

nothing calls this directly

Calls 1

zil_suspendFunction · 0.85

Tested by

no test coverage detected