Re: [PATCH nilfs-utils v2 3/4] mount: don't pass -n option to cleanerd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon,  6 Jan 2014 00:52:44 +0900, Hitoshi Mitake wrote:
> This patch lets mount.nilfs2 not pass the -n option to cleanerd,
> because it is obsoleted.
> 
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi@xxxxxxxxxxxxx>
> ---
>  lib/cleaner_exec.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/lib/cleaner_exec.c b/lib/cleaner_exec.c
> index 299451c..edc55e3 100644
> --- a/lib/cleaner_exec.c
> +++ b/lib/cleaner_exec.c
> @@ -75,7 +75,6 @@
>  #define WAIT_CLEANERD_RETRY_TIMEOUT	8	/* in seconds */
>  
>  static const char cleanerd[] = "/sbin/" NILFS_CLEANERD_NAME;
> -static const char cleanerd_nofork_opt[] = "-n";
>  static const char cleanerd_protperiod_opt[] = "-p";
>  
>  static void default_logger(int priority, const char *fmt, ...)
> @@ -118,7 +117,7 @@ static inline int process_is_alive(pid_t pid)
>  int nilfs_launch_cleanerd(const char *device, const char *mntdir,
>  			  unsigned long protperiod, pid_t *ppid)
>  {
> -	const char *dargs[7];
> +	const char *dargs[6];
>  	struct stat statbuf;
>  	sigset_t sigs;
>  	int i = 0;
> @@ -146,7 +145,6 @@ int nilfs_launch_cleanerd(const char *device, const char *mntdir,
>  			exit(1);
>  		}
>  		dargs[i++] = cleanerd;
> -		dargs[i++] = cleanerd_nofork_opt;
>  		if (protperiod != ULONG_MAX) {
>  			dargs[i++] = cleanerd_protperiod_opt;
>  			snprintf(buf, sizeof(buf), "%lu", protperiod);
> -- 
> 1.8.1.2

Looks good, applied.

Ryusuke Konishi
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux