mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Notify via syslog when godown is shutting down fs
Just a hint for those perusing logs that the ensuing shutdown is intentional... Feb 16 17:06:17 hostname godown: xfstests-induced forced shutdown of /mnt/scratch Feb 16 17:06:17 hostname kernel: Filesystem "sdb3": xfs_log_force: error 5 returned. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Alex Elder <aelder@sgi.com>
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <syslog.h>
|
||||
#include "global.h"
|
||||
|
||||
static char *xprogname;
|
||||
@@ -109,6 +110,8 @@ main(int argc, char *argv[])
|
||||
if (verbose_opt) {
|
||||
printf("Calling XFS_IOC_GOINGDOWN\n");
|
||||
}
|
||||
syslog(LOG_WARNING, "xfstests-induced forced shutdown of %s:\n",
|
||||
mnt_dir);
|
||||
if ((xfsctl(mnt_dir, fd, XFS_IOC_GOINGDOWN, &flag)) == -1) {
|
||||
fprintf(stderr, "%s: error on xfsctl(GOINGDOWN) of \"%s\": %s\n",
|
||||
xprogname, mnt_dir, strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user