• Ed Schouten's avatar
    [PATCH] lockd: remove hardcoded maximum NLM cookie length · fc29938d
    Ed Schouten authored
    At the moment, the NLM cookie length is fixed to 8 bytes, while 1024 is the
    theoretical maximum.  FreeBSD uses 16 bytes, Mac OS X uses 20 bytes. 
    Therefore we need to make the length dynamic (which I set to 32 bytes).
    
    This patch is based on an old patch for Linux 2.4.23-pre9, which I changed
    to patch properly (also added some stylish NIPQUAD fixes).
    
    From: Neil Brown <neilb@cse.unsw.edu.au>
    
    Further lockd tidyups.
      - NIPQUAD everywhere that is appropriate
      - use XDR_QUADLEN in more places as appropriate
      - discard QUADLEN which is a lockd-specific version of XDR_QUADLEN
    Signed-off-by: default avatarNeil Brown <neilb@cse.unsw.edu.au>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    fc29938d
svcproc.c 15.5 KB