Message ID | 20190218181359.GG6477@magnolia (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | t_open_tmpfiles: flush log when shutting down filesystem | expand |
diff --git a/src/t_open_tmpfiles.c b/src/t_open_tmpfiles.c index 9e70fbaa..da9390fd 100644 --- a/src/t_open_tmpfiles.c +++ b/src/t_open_tmpfiles.c @@ -70,7 +70,11 @@ void die(void) fflush(stdout); if (shutdown_fs) { - int flag = XFS_FSOP_GOING_FLAGS_NOLOGFLUSH; + /* + * Flush the log so that we have to process the + * unlinked inodes the next time we mount. + */ + int flag = XFS_FSOP_GOING_FLAGS_LOGFLUSH; int ret; ret = ioctl(min_fd, XFS_IOC_GOINGDOWN, &flag);