[pnfs] Moving layoutget from proc to xdr

William A. (Andy) Adamson andros at citi.umich.edu
Fri Jan 11 12:53:28 EST 2008


On Jan 10, 2008 5:16 PM, Dean Hildebrand <seattleplus at gmail.com> wrote:

> Just a note about my patchset for the device-related export ops.  I
> found calling a single export op to retrieve and encode a device and
> encode time (in nfs4xdr.c) much simpler than first getting the device in
> nfs4proc.c and then encoding it and freeing it in nfs4xdr.c.
>
> Consequently, I'd like to change layoutget on the server to use the same
> system.  It would replace the following export ops
>
> layout_encode
> layout_free
> layout_get
>
> with a single export op:
>
> layout_get            (or something)
>
> This single op would retrieve the layout for an inode and encode it
> directly on the output xdr stream.  (exactly how get_device_info works
> in my patches)
>
> Anyways, have a look at my export device patches and let me know what
> you think about doing things this way.


i like it.

-->Andy

>
>
> Dean
>
>
>
> _______________________________________________
> pNFS mailing list
> pNFS at linux-nfs.org
> http://linux-nfs.org/cgi-bin/mailman/listinfo/pnfs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linux-nfs.org/pipermail/pnfs/attachments/20080111/2cb68e55/attachment.htm 


More information about the pNFS mailing list