/* * FIXME: four LAYOUTSTATS calls per compound at most! Do we need to support * more? Need to consider not to pre-alloc too much for a compound.
*/ #define PNFS_LAYOUTSTATS_MAXDEV (4) #define READ_PLUS_SCRATCH_SIZE (16)
/* * Maximum XDR buffer size needed for a listxattr buffer of buflen size. * * The upper boundary is a buffer with all 1-byte sized attribute names. * They would be 7 bytes long in the eventual buffer ("user.x\0"), and * 8 bytes long XDR-encoded. * * Include the trailing eof word as well and make the result a multiple * of 4 bytes.
*/ staticinline u32 nfs42_listxattr_xdrsize(u32 buflen)
{
u32 size = 8 * buflen / (XATTR_USER_PREFIX_LEN + 2) + 4;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.