All of lore.kernel.org
 help / color / mirror / Atom feed
From: Moshe Kaminsky <kaminsky@math.huji.ac.il>
To: autofs@linux.kernel.org
Subject: Re: [ANNOUNCE] autofs 5.0.0 beta1
Date: Thu, 4 May 2006 20:28:29 +0300	[thread overview]
Message-ID: <20060504172829.GA12272@kaminsky> (raw)
In-Reply-To: <Pine.LNX.4.64.0605040156090.2085@raven.themaw.net>


[-- Attachment #1.1: Type: text/plain, Size: 2064 bytes --]

* Ian Kent <raven@themaw.net> [03/05/06 21:15]:
> On Wed, 3 May 2006, Moshe Kaminsky wrote:
> 
> > * Ian Kent <raven@themaw.net> [03/05/06 19:15]:
> > > On Wed, 3 May 2006, Moshe Kaminsky wrote:
> > > 
> > > > 
> > > > I modified the ebuild for autofs4 and tried to compile. I get:
> > > > 
> > > > gcc -g -Os -march=athlon-tbird -pipe -fomit-frame-pointer -D_REENTRANT -D_REENTRANT -rdynamic -fPIE -D_GNU_SOURCE -I../include -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\"  -DAUTOFS_MAP_DIR=\"/etc/autofs\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -DVERSION_STRING=\"5.0.0_beta1\" -c direct.c
> > > > direct.c: In function `handle_packet_expire_direct':
> > > > direct.c:969: error: label at end of compound statement
> > > > direct.c: In function `handle_packet_missing_direct':
> > > > direct.c:1260: error: label at end of compound statement
> > > > make[1]: *** [direct.o] Error 1
> > > > make[1]: Leaving directory `/usr/tmp/portage/autofs-5.0.0_beta1/work/autofs-5.0.0_beta1/daemon'
> > > 
> > > I'm not sure this will make a difference but could you give it a try.
> > 
> > This didn't help.
> > 
> 
> This fixes it.
> 
> diff --git a/daemon/direct.c b/daemon/direct.c
> index 96f934f..66d2efa 100644
> --- a/daemon/direct.c
> +++ b/daemon/direct.c
> @@ -953,6 +953,7 @@ int handle_packet_expire_direct(struct a
>  		free(mt);
>  		send_fail(mt->ioctlfd, pkt->wait_queue_token);
>  		status = 1;
> +		goto done;
>  	}
>  
>  	pthread_cleanup_push(pending_cleanup, mt);
> @@ -965,9 +966,12 @@ int handle_packet_expire_direct(struct a
>  	}
>  
>  	pthread_cleanup_pop(1);
> -done:
>  	pthread_cleanup_pop(1);
>  	return status;
> +
> +done:
> +	cache_lock_cleanup(mc);
> +	return status;
>  }
>  
>  static void *do_mount_direct(void *arg)
> @@ -1256,8 +1260,11 @@ int handle_packet_missing_direct(struct 
>  	}
>  
>  	pthread_cleanup_pop(1);
> -done:
>  	pthread_cleanup_pop(1);
>  	return status;
> +
> +done:
> +	cache_lock_cleanup(mc);
> +	return status;
>  }
>  
> 

Thanks, that solved it.

Moshe

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

  reply	other threads:[~2006-05-04 17:28 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-02 15:35 [ANNOUNCE] autofs 5.0.0 beta1 Ian Kent
2006-05-02 17:33 ` Steinar H. Gunderson
2006-05-03  1:26   ` Ian Kent
2006-05-03 13:16 ` Moshe Kaminsky
2006-05-03 14:48   ` Ian Kent
2006-05-03 16:55     ` Moshe Kaminsky
2006-05-03 17:30       ` Ian Kent
2006-05-04 17:33         ` Moshe Kaminsky
2006-05-05  1:32           ` Ian Kent
2006-05-03 15:15   ` Ian Kent
2006-05-03 16:58     ` Moshe Kaminsky
2006-05-03 15:58   ` Ian Kent
2006-05-03 17:00     ` Moshe Kaminsky
2006-05-03 17:56       ` Ian Kent
2006-05-04 17:28         ` Moshe Kaminsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-05-04 11:16 Rigler, Stephen C.
2006-05-04 12:29 ` Ian Kent
2006-05-04 13:56   ` Jeff Moyer
2006-05-04 13:08 Rigler, Stephen C.
2006-05-04 13:57 ` Jeff Moyer
2006-05-04 17:29 Rigler, Stephen C.
2006-05-04 18:03 ` Jeff Moyer
2006-05-05  1:37 ` Ian Kent
2006-05-08 11:51 Rigler, Stephen C.
2006-05-09 10:51 ` Ian Kent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060504172829.GA12272@kaminsky \
    --to=kaminsky@math.huji.ac.il \
    --cc=autofs@linux.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.