xfs
[Top] [All Lists]

[PATCH] remove the unnecessary word in the log message.

To: xfs@xxxxxxxxxxx
Subject: [PATCH] remove the unnecessary word in the log message.
From: Utako Kusaka <utako@xxxxxxxxxxxxxx>
Date: Fri, 13 Apr 2007 09:37:35 +0900
Sender: xfs-bounce@xxxxxxxxxxx
Hi,

This is the trivial fix to remove the unnecessary word in the log message.
"required" is set in both xlog_recover() and xfs_dev_is_read_only().

Example:
fsfile is the filesystem which needs log recovery.
# losetup -r /dev/loop1 fsfile
# mount -t xfs /dev/loop1 mpnt
mount: block device /dev/loop1 is write-protected, mounting read-only
mount: cannot mount block device /dev/loop1 read-only

/var/log/messages:
Jan 23 15:05:22 g9517 kernel: XFS: recovery required required on read-only 
device.


Signed-off-by: Utako Kusaka <utako@xxxxxxxxxxxxxx>
---

--- linux-2.6.20-orig/fs/xfs/xfs_log_recover.c  2007-02-05 03:44:54.000000000 
+0900
+++ linux-2.6.20/fs/xfs/xfs_log_recover.c       2007-04-11 13:23:04.000000000 
+0900
@@ -3937,8 +3937,7 @@ xlog_recover(
                 * under the vfs layer, so we can get away with it unless
                 * the device itself is read-only, in which case we fail.
                 */
-               if ((error = xfs_dev_is_read_only(log->l_mp,
-                                               "recovery required"))) {
+               if ((error = xfs_dev_is_read_only(log->l_mp, "recovery"))) {
                        return error;
                }


<Prev in Thread] Current Thread [Next in Thread>