Skip to content
Snippets Groups Projects
  • Li Xi's avatar
    2305c361
    LU-5054 llite: enforce pool name length limit · 2305c361
    Li Xi authored
    
    The pool related codes have some inconsistency about the length
    of pool name. Creating and setting a pool name of lenght 16
    to a directory will succeed. However, creating a file under
    that directory will fail.
    
    This patch disables any pool name which is longer or equal to
    16. And it changes LOV_MAXPOOLNAME from 16 to 15 which might
    cause some invalid LLOG records of OST pools with 16 byte names.
    It is not a problem since invalid LLOG records are just ignored.
    And OST pools with 16 byte names won't work well anyway on the
    old versions. There will be problem of inconsistency if part of
    the servers have this patch and part of the servers don't. But
    it would be safe to assume that this is not a normal
    configuration.
    
    Signed-off-by: default avatarLi Xi <lixi@ddn.com>
    Change-Id: I3672fb5414662120c3e6b8641002a6b76994cc77
    Reviewed-on: http://review.whamcloud.com/10306
    
    
    Reviewed-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
    Tested-by: Jenkins
    Reviewed-by: default avatarFan Yong <fan.yong@intel.com>
    Tested-by: default avatarMaloo <hpdd-maloo@intel.com>
    2305c361
    History
    LU-5054 llite: enforce pool name length limit
    Li Xi authored
    
    The pool related codes have some inconsistency about the length
    of pool name. Creating and setting a pool name of lenght 16
    to a directory will succeed. However, creating a file under
    that directory will fail.
    
    This patch disables any pool name which is longer or equal to
    16. And it changes LOV_MAXPOOLNAME from 16 to 15 which might
    cause some invalid LLOG records of OST pools with 16 byte names.
    It is not a problem since invalid LLOG records are just ignored.
    And OST pools with 16 byte names won't work well anyway on the
    old versions. There will be problem of inconsistency if part of
    the servers have this patch and part of the servers don't. But
    it would be safe to assume that this is not a normal
    configuration.
    
    Signed-off-by: default avatarLi Xi <lixi@ddn.com>
    Change-Id: I3672fb5414662120c3e6b8641002a6b76994cc77
    Reviewed-on: http://review.whamcloud.com/10306
    
    
    Reviewed-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
    Tested-by: Jenkins
    Reviewed-by: default avatarFan Yong <fan.yong@intel.com>
    Tested-by: default avatarMaloo <hpdd-maloo@intel.com>
llapi_file_get_stripe.3 4.09 KiB