diff options
author | Martin Brandenburg <martin@omnibond.com> | 2017-04-25 15:37:59 -0400 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2017-04-26 14:33:00 -0400 |
commit | 382f4581e67f57209c7aa67e39f26ba076306a2e (patch) | |
tree | 9c67a6908a2a25df062e3860220ba9028cd57c86 /fs/orangefs/orangefs-dev-proto.h | |
parent | 17930b252cd6f31163c259eaa99dd8aa630fb9ba (diff) | |
download | lwn-382f4581e67f57209c7aa67e39f26ba076306a2e.tar.gz lwn-382f4581e67f57209c7aa67e39f26ba076306a2e.zip |
orangefs: rewrite readdir to fix several bugs
In the past, readdir assumed that the user buffer will be large enough
that all entries from the server will fit. If this was not true,
entries would be skipped.
Since it works now, request 512 entries rather than 96 per server
operation.
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-dev-proto.h')
-rw-r--r-- | fs/orangefs/orangefs-dev-proto.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/orangefs/orangefs-dev-proto.h b/fs/orangefs/orangefs-dev-proto.h index f380f9ed1b28..efe08c763e56 100644 --- a/fs/orangefs/orangefs-dev-proto.h +++ b/fs/orangefs/orangefs-dev-proto.h @@ -52,12 +52,7 @@ */ #define ORANGEFS_MAX_DEBUG_STRING_LEN 0x00000800 -/* - * The maximum number of directory entries in a single request is 96. - * XXX: Why can this not be higher. The client-side code can handle up to 512. - * XXX: What happens if we expect more than the client can return? - */ -#define ORANGEFS_MAX_DIRENT_COUNT_READDIR 96 +#define ORANGEFS_MAX_DIRENT_COUNT_READDIR 512 #include "upcall.h" #include "downcall.h" |