| To: | Eric Sandeen <sandeen@xxxxxxxxxx>, xfs-oss <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 1/2] xfs: log unmount events on console |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Mon, 23 Feb 2015 13:15:49 -0600 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <54EB7BDB.7080202@xxxxxxxxxx> |
| References: | <54EB7BDB.7080202@xxxxxxxxxx> |
There are times, when doing triage and forensics,
that we would like to know whether a filesystem was unmounted,
or if the plug was pulled without a clean unmount. Log
unmounts at the same level (NOTICE) as we log mounts.
Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index 8fcc4cc..dd40d25 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -1039,6 +1039,7 @@ xfs_fs_put_super(
{
struct xfs_mount *mp = XFS_M(sb);
+ xfs_notice(mp, "Unmounting Filesystem");
xfs_filestream_unmount(mp);
xfs_unmountfs(mp);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Update Account, update |
|---|---|
| Next by Date: | [PATCH 2/2] xfs: clarify async write failure ratelimit message, Eric Sandeen |
| Previous by Thread: | [PATCH 0/2] xfs: minor kernel logging updates, Eric Sandeen |
| Next by Thread: | Re: [PATCH 1/2] xfs: log unmount events on console, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |