Linux NILFS development
 help / color / mirror / Atom feed
* [PATCH] libmount: don't base GC startup on no-mtab context
@ 2014-09-01 19:45 Dan McGee
       [not found] ` <1409600714-25174-1-git-send-email-dan-fd97jBR+K/6hPH1hqNUYSQ@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Dan McGee @ 2014-09-01 19:45 UTC (permalink / raw)
  To: linux-nilfs-u79uwXL29TY76Z2rM5mHXA

When mtab is a symlink to /proc/mounts, libmount uses /run/mount/utab to
store filesystem-specific mount attributes, making this check
unnecessary. Worse, it now breaks nilfs_cleanerd under systemd 216+
since it always passes `-n` to the mount command.

Signed-off-by: Dan McGee <dan-fd97jBR+K/6hPH1hqNUYSQ@public.gmane.org>
---
 sbin/mount/mount_libmount.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sbin/mount/mount_libmount.c b/sbin/mount/mount_libmount.c
index c518475..b901654 100644
--- a/sbin/mount/mount_libmount.c
+++ b/sbin/mount/mount_libmount.c
@@ -404,12 +404,6 @@ static int nilfs_update_mount_state(struct nilfs_mount_info *mi)
 	rungc = gc_ok && !mi->new_attrs.nogc;
 	old_attrs = (mi->mflags & MS_REMOUNT) ? &mi->old_attrs : NULL;
 
-	if (mnt_context_is_nomtab(cxt)) {
-		if (rungc)
-			printf(_("%s not started\n"), NILFS_CLEANERD_NAME);
-		return 0;
-	}
-
 	if (rungc) {
 		if (mi->new_attrs.pp == ULONG_MAX)
 			mi->new_attrs.pp = mi->old_attrs.pp;
-- 
2.1.0

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] libmount: don't base GC startup on no-mtab context
       [not found] ` <1409600714-25174-1-git-send-email-dan-fd97jBR+K/6hPH1hqNUYSQ@public.gmane.org>
@ 2014-09-02 17:16   ` Ryusuke Konishi
  0 siblings, 0 replies; 2+ messages in thread
From: Ryusuke Konishi @ 2014-09-02 17:16 UTC (permalink / raw)
  To: Dan McGee; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA

On Mon,  1 Sep 2014 14:45:14 -0500, Dan McGee <dan-fd97jBR+K/6hPH1hqNUYSQ@public.gmane.org> wrote:
> When mtab is a symlink to /proc/mounts, libmount uses /run/mount/utab to
> store filesystem-specific mount attributes, making this check
> unnecessary. Worse, it now breaks nilfs_cleanerd under systemd 216+
> since it always passes `-n` to the mount command.
> 
> Signed-off-by: Dan McGee <dan-fd97jBR+K/6hPH1hqNUYSQ@public.gmane.org>

Applied, thank you!

Ryusuke Konishi

> ---
>  sbin/mount/mount_libmount.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/sbin/mount/mount_libmount.c b/sbin/mount/mount_libmount.c
> index c518475..b901654 100644
> --- a/sbin/mount/mount_libmount.c
> +++ b/sbin/mount/mount_libmount.c
> @@ -404,12 +404,6 @@ static int nilfs_update_mount_state(struct nilfs_mount_info *mi)
>  	rungc = gc_ok && !mi->new_attrs.nogc;
>  	old_attrs = (mi->mflags & MS_REMOUNT) ? &mi->old_attrs : NULL;
>  
> -	if (mnt_context_is_nomtab(cxt)) {
> -		if (rungc)
> -			printf(_("%s not started\n"), NILFS_CLEANERD_NAME);
> -		return 0;
> -	}
> -
>  	if (rungc) {
>  		if (mi->new_attrs.pp == ULONG_MAX)
>  			mi->new_attrs.pp = mi->old_attrs.pp;
> -- 
> 2.1.0
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-02 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-01 19:45 [PATCH] libmount: don't base GC startup on no-mtab context Dan McGee
     [not found] ` <1409600714-25174-1-git-send-email-dan-fd97jBR+K/6hPH1hqNUYSQ@public.gmane.org>
2014-09-02 17:16   ` Ryusuke Konishi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox