In nfs_dir_read() count used before and after limiting?

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Sep 11 14:03:39 UTC 2014


On 11/09/14 15:58, Peter Dufault wrote:
> In nfs_dir_read() I see:
>
>      /* align + round down the buffer */
>      count &= ~ (DIRENT_HEADER_SIZE - 1);
>      di->len = count;
>
> Then later:
>      if (count > NFS_MAXDATA)
>          count = NFS_MAXDATA;
>
>      di->readdirargs.count = count;
>
> Can someone who understands this comment on it?

Sorry, Peter.  I don't have time to look at this at the moment.  The NFS code 
is hard to understand.  Since it works for me I have no urgent need to spend 
time on this.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the devel mailing list