[PATCH] Print userdata in net g_lock dump

Jeremy Allison jra at samba.org
Fri Jun 23 16:09:24 UTC 2017


On Fri, Jun 23, 2017 at 09:14:52AM +0200, Volker Lendecke via samba-technical wrote:
> Hi!
> 
> Review appreciated!

LGTM. RB+ and pushed.

> -- 
> SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
> phone: +49-551-370000-0, fax: +49-551-370000-9
> AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
> http://www.sernet.de, mailto:kontakt at sernet.de

> From e1a650d5ae17f5e755d7c51b7d01052e6cf5bda5 Mon Sep 17 00:00:00 2001
> From: Volker Lendecke <vl at samba.org>
> Date: Thu, 8 Jun 2017 12:51:19 +0200
> Subject: [PATCH] net: Dump data for net_g_lock dump
> 
> 4d404f2 added user-data for a g_lock. Print it in net g_lock dump.
> 
> Signed-off-by: Volker Lendecke <vl at samba.org>
> ---
>  source3/utils/net_g_lock.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/source3/utils/net_g_lock.c b/source3/utils/net_g_lock.c
> index 7543fd8..0ec6846 100644
> --- a/source3/utils/net_g_lock.c
> +++ b/source3/utils/net_g_lock.c
> @@ -123,6 +123,7 @@ static void net_g_lock_dump_fn(const struct g_lock_rec *locks,
>  		d_printf("%s: %s\n", server_id_str_buf(l->pid, &idbuf),
>  			 (l->lock_type & 1) ? "WRITE" : "READ");
>  	}
> +	dump_data_file(data, datalen, true, stdout);
>  }
>  
>  static int net_g_lock_dump(struct net_context *c, int argc, const char **argv)
> -- 
> 2.7.4
> 




More information about the samba-technical mailing list