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

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Sep 12 14:40:09 PDT 2005


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 
  Log:
  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


http://www.dragonflybsd.org/cvsweb/src/sys/dev/raid/twa/twa_freebsd.c.diff?r1=1.7&r2=1.8&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/dev/raid/twe/twe_freebsd.c.diff?r1=1.15&r2=1.16&f=u





More information about the Commits mailing list