Whamcloud - gitweb
b=20563 Fix fid_flatten32() to not lose OID bits
authorAndreas Dilger <andreas.dilger@oracle.com>
Tue, 30 Nov 2010 22:58:29 +0000 (15:58 -0700)
committerJohann Lombardi <johann.lombardi@oracle.com>
Mon, 24 Jan 2011 13:01:35 +0000 (14:01 +0100)
commitd368881462cac8edef61e2ec14baec5fa8070990
tree157db077bcc4c907daff1edceaf46cd891d31641
parentd05388cfed71f5fb981907826efba6c9e56f22f3
b=20563 Fix fid_flatten32() to not lose OID bits

The original implementation of fid_flatten32() was broken due to an
error in the shift calculation (note to self - "0x00" is 8 bits, not
16 bits).  This could negatively impact 32-bit clients that were
creating more than 64k files in the same directory.

This 32-bit inode number is visible only within a single client mount,
is not used in any persistent storage, and only if a 2.x server is in
use (which is basically none today) by a 32-bit client, so there is no
issue to change it at this time.
lustre/llite/namei.c