All of lore.kernel.org
 help / color / mirror / Atom feed
* may be a bug?
@ 2008-08-28  8:52 Payphone LIOU
  2008-08-28 17:43 ` J. Bruce Fields
  0 siblings, 1 reply; 2+ messages in thread
From: Payphone LIOU @ 2008-08-28  8:52 UTC (permalink / raw)
  To: linux-nfs

Hi, ALL.

in moutd.h of nfs-utils-1.1.3, an union object was defined  below.
union mountd_results {
	fhstatus		fstatus;
	mountlist		mountlist;
	exports			exports;
};

the space size of mountd_results is the maximum one among fsstaus,mountlist and exports, and all of them are the output arguments of mountd procedures.
in nfsv3, mount_mnt_3_svc takes "mountres3" as its output. so i think it may be :

union mountd_results {
	fhstatus		fstatus;
	mountlist		mountlist;
	exports			exports;
	mountres3    mountres3;
};

because the size of fstatus is larger than mountres3, no erros happens. but i think semantically  "mountres3" should be added into this union structure. am i wrong?

thansk a lot.

Best regards. :-)

Payphone LIOU 


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

* Re: may be a bug?
  2008-08-28  8:52 may be a bug? Payphone LIOU
@ 2008-08-28 17:43 ` J. Bruce Fields
  0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2008-08-28 17:43 UTC (permalink / raw)
  To: Payphone LIOU; +Cc: linux-nfs

On Thu, Aug 28, 2008 at 04:52:58PM +0800, Payphone LIOU wrote:
> Hi, ALL.
> 
> in moutd.h of nfs-utils-1.1.3, an union object was defined  below.
> union mountd_results {
> 	fhstatus		fstatus;
> 	mountlist		mountlist;
> 	exports			exports;
> };
> 
> the space size of mountd_results is the maximum one among fsstaus,mountlist and exports, and all of them are the output arguments of mountd procedures.
> in nfsv3, mount_mnt_3_svc takes "mountres3" as its output. so i think it may be :
> 
> union mountd_results {
> 	fhstatus		fstatus;
> 	mountlist		mountlist;
> 	exports			exports;
> 	mountres3    mountres3;
> };
> 
> because the size of fstatus is larger than mountres3, no erros happens. but i think semantically  "mountres3" should be added into this union structure. am i wrong?

>From a quick glance..... Yes, I agree, that looks suspicious.  Perhaps
you could send a patch?  (Address it to steved@redhat.com, cc'd to this
list.)

--b.

> 
> thansk a lot.
> 
> Best regards. :-)
> 
> Payphone LIOU 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.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:[~2008-08-28 17:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-28  8:52 may be a bug? Payphone LIOU
2008-08-28 17:43 ` J. Bruce Fields

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.