xfs
[Top] [All Lists]

Re: [PATCH] xfstests: Notify via syslog when godown is shutting down fs

To: Eric Sandeen <sandeen@xxxxxxxxxxx>
Subject: Re: [PATCH] xfstests: Notify via syslog when godown is shutting down fs
From: Chandra Seetharaman <sekharan@xxxxxxxxxx>
Date: Thu, 17 Feb 2011 09:33:25 -0800
Cc: Dave Chinner <david@xxxxxxxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <4D5C554D.8080004@xxxxxxxxxxx>
Organization: IBM
References: <1297798863.32230.222.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20110215223022.GE13052@dastard> <1297886433.32230.224.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20110216221433.GG13052@dastard> <4D5C554D.8080004@xxxxxxxxxxx>
Reply-to: sekharan@xxxxxxxxxx
Thanks Eric. This makes it clear that it is intentional.

chandra 
On Wed, 2011-02-16 at 16:53 -0600, Eric Sandeen wrote:
> 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@xxxxxxxxxx>
> ---
> 
> diff --git a/src/godown.c b/src/godown.c
> index 07b6980..b140a41 100644
> --- a/src/godown.c
> +++ b/src/godown.c
> @@ -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));
> 
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs


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