If the final pass at repairs fails because the kernel says the
filesystem is busy, we should emit this error to the caller instead of
dropping it silently.
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
case EDEADLOCK:
case EBUSY:
/* Filesystem is busy, try again later. */
- if (debug || verbose)
+ if (repair_flags & XRM_FINAL_WARNING)
+ str_error(ctx, descr_render(dsc),
+_("Filesystem is busy, repair incomplete."));
+ else if (debug || verbose)
str_info(ctx, descr_render(dsc),
_("Filesystem is busy, deferring repair."));
return 0;