summaryrefslogtreecommitdiffstats
path: root/bitmap.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop the superblock arg from all metadata methods.Neil Brown2007-12-141-1/+1
| | | | It is now in the 'supertype'
* Remove spaces/tabs from ends of lines.Neil Brown2007-12-141-3/+3
|
* Centralise code for copying uuidNeil Brown2006-12-141-12/+1
| | | | Rather than opencoding the byteswap all the time.
* Fix and test --update=uuidNeil Brown2006-12-141-5/+25
| | | | A number of odd bugs here, but now we have a regression test as well.
* Reduce max bitmap size when bitmap is in a file.Neil Brown2006-10-161-3/+4
| | | | To ensure kernel never needs to allocate more than 1 page contiguously.
* Flush bitmap file before truncate.Neil Brown2006-10-161-0/+1
| | | | | Otheriwse the last write happens on fclose which is after ftruncate, to the truncate has no effect.
* Fixed endian problem with bitmap metdataPaul Clements2006-10-091-0/+1
| | | | From: Paul Clements <paul.clements@steeleye.com>
* check return status of all write/fwrite functions as required by glibc 2.4Neil Brown2006-05-291-6/+12
| | | | | | | | | | | | From: Luca Berra <bluca@vodka.it> glibc 2.4 is pedantic on ignoring return values from fprintf, fwrite and write, so now we check the rval and actually do something with it. in the Grow.c case i only print a warning, since i don't think we can do anything in case we fail invalidating those superblocks (is should never happen, but then...) Signed-off-by: Neil Brown <neilb@suse.de>
* When updating uuid, update the bitmap as well - external bitmapsNeil Brown2006-05-161-0/+14
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Limit size of bitmap to 2million chunks.Neil Brown2006-05-151-0/+11
| | | | | | | | When creating a file bitmap, choose a default size that results in fewer than 2^21 chunks. Without this kmalloc failure in the kernel becomes likely. Signed-off-by: Neil Brown <neilb@suse.de>
* Use O_DIRECT to read bitmap files.Neil Brown2006-05-151-18/+41
| | | | | | | | A pending patch to the kernel causes bitmap file updates to not go through the page cache, so O_DIRECT is needed to ensure that we read current data. Signed-off-by: Neil Brown <neilb@suse.de>
* Release some compile fixes.Neil Brown2006-02-061-2/+2
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Assorted fixes...Neil Brown2006-01-271-0/+5
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Support bitmaps with raid10Neil Brown2005-11-221-5/+6
| | | | | | And a couple of other little things Signed-off-by: Neil Brown <neilb@suse.de>
* Create version-4 bitmaps if kernel supports it.Neil Brown2005-10-111-3/+5
| | | | | | | Version-3 bitmaps are host-endian. Version-4 are little-endian and so more portable. Signed-off-by: Neil Brown <neilb@suse.de>
* Fix remaining problems with hot-add bitmap to version-1 superblockNeil Brown2005-09-121-1/+1
| | | | | | Also some more tests - r5 and r6 bitmaps Signed-off-by: Neil Brown <neilb@suse.de>
* Passes all tests, nearly ready for release.Neil Brown2005-08-261-3/+3
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Getting ready for 2.0 release...Neil Brown2005-08-261-3/+3
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Support internal bitmaps with format-1 superblocks.Neil Brown2005-08-251-2/+25
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Add write-behind supportNeil Brown2005-08-091-0/+8
| | | | | | | | Currently this includes --write-behind to set level of write-behind supported --write-mostly to flag devices as write-mostly. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Assorted Fixes for multiple bugs.Neil Brown2005-08-041-2/+2
| | | | | | | Assemble would crash, or just not work. A few other problem found by a new test-suite. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Replace sprintf calls with snprintfNeil Brown2005-06-141-1/+1
| | | | | | To quiet diet-libc Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Add support for internal bitmapsNeil Brown2005-06-071-3/+15
| | | | | | For version 0.90 superblocks, an internal bitmap can be specified at create. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Initial bitmap supportNeil Brown2005-06-071-0/+315
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>