cvs commit: src/sys/fs/msdosfs msdosfs_conv.c

Nate Lawson njl at FreeBSD.org
Fri Apr 15 18:49:51 PDT 2005


njl         2005-04-16 01:49:50 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/msdosfs       msdosfs_conv.c 
  Log:
  Fix mbnambuf support for multi-byte characters.  If a substring is larger
  than WIN_CHARS bytes, we shift the suffix (previous substrings) upwards
  by the amount this substring exceeds its WIN_CHARS slot.  Profiling shows
  this change is indistinguishable from the previous code at 95% confidence.
  This bug would result in attempts to access or create files or directories
  with multi-byte characters returning an error but no data loss.
  
  Reported and tested by: avatar
  MFC after:      3 days
  
  Revision  Changes    Path
  1.44      +29 -19    src/sys/fs/msdosfs/msdosfs_conv.c


More information about the cvs-src mailing list