DragonFly BSD
DragonFly commits List (threaded) for 2005-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/dev/raid/twa twa_freebsd.c src/sys/dev/raid/twe twe_freebsd.c

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Sep 2005 14:38:34 -0700 (PDT)

dillon      2005/09/12 14:38:34 PDT

DragonFly src repository

  Modified files:
    sys/dev/raid/twa     twa_freebsd.c 
    sys/dev/raid/twe     twe_freebsd.c 
  DragonFly's malloc only guarentees X alignment when X is a power of 2,
  otherwise we would have to use contigalloc, which is nasty.
  Use malloc and adjust the allocation request from a multiple of 512 to the
  nearest power of 2 greater or equal to 512 and greater or equal to the
  request size.
  Once a filesystem is mounted I/O operates on 512 byte boundaries anyway, so
  this bug fix only effects programs that operates directly on the block device
  such as 'newfs' and 'fsck'.
  Revision  Changes    Path
  1.8       +7 -1      src/sys/dev/raid/twa/twa_freebsd.c
  1.16      +7 -2      src/sys/dev/raid/twe/twe_freebsd.c


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]