Neil Brown
3da92f272d
Drop the superblock arg from all metadata methods.
...
It is now in the 'supertype'
2007-12-14 20:14:33 +11:00
Neil Brown
aba69144fd
Remove spaces/tabs from ends of lines.
2007-12-14 20:13:43 +11:00
Neil Brown
350f29f90d
Centralise code for copying uuid
...
Rather than opencoding the byteswap all the time.
2006-12-14 17:33:14 +11:00
Neil Brown
bf4fb153a4
Fix and test --update=uuid
...
A number of odd bugs here, but now we have a regression test as well.
2006-12-14 17:31:29 +11:00
Neil Brown
b39827de21
Reduce max bitmap size when bitmap is in a file.
...
To ensure kernel never needs to allocate more than 1 page contiguously.
2006-10-16 15:26:43 +10:00
Neil Brown
97a6748ce2
Flush bitmap file before truncate.
...
Otheriwse the last write happens on fclose which is after ftruncate,
to the truncate has no effect.
2006-10-16 14:39:06 +10:00
Paul Clements
10ae45c12c
Fixed endian problem with bitmap metdata
...
From: Paul Clements <paul.clements@steeleye.com>
2006-10-09 11:17:22 +10:00
Neil Brown
9fca7d6236
check return status of all write/fwrite functions as required by glibc 2.4
...
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>
2006-05-29 02:06:32 +00:00
Neil Brown
8131b493df
When updating uuid, update the bitmap as well - external bitmaps
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-16 06:05:27 +00:00
Neil Brown
1bfdbe01ff
Limit size of bitmap to 2million chunks.
...
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>
2006-05-15 04:21:33 +00:00
Neil Brown
4ccdb95600
Use O_DIRECT to read bitmap files.
...
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>
2006-05-15 00:56:02 +00:00
Neil Brown
1e0d770c0f
Release some compile fixes.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-02-06 04:18:12 +00:00
Neil Brown
838acbc272
Assorted fixes...
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-27 01:44:47 +00:00
Neil Brown
f9c25f1d2a
Support bitmaps with raid10
...
And a couple of other little things
Signed-off-by: Neil Brown <neilb@suse.de>
2005-11-22 03:37:14 +00:00
Neil Brown
dcec9ee547
Create version-4 bitmaps if kernel supports it.
...
Version-3 bitmaps are host-endian. Version-4 are little-endian
and so more portable.
Signed-off-by: Neil Brown <neilb@suse.de>
2005-10-11 04:44:44 +00:00
Neil Brown
f6d75de8e0
Fix remaining problems with hot-add bitmap to version-1 superblock
...
Also some more tests - r5 and r6 bitmaps
Signed-off-by: Neil Brown <neilb@suse.de>
2005-09-12 05:24:10 +00:00
Neil Brown
1bf4e2d962
Passes all tests, nearly ready for release.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-26 06:08:28 +00:00
Neil Brown
8431b2b286
Getting ready for 2.0 release...
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-26 02:26:37 +00:00
Neil Brown
34163fc7cf
Support internal bitmaps with format-1 superblocks.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-25 04:31:44 +00:00
Neil Brown
dfd4d8ee42
Add write-behind support
...
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>
2005-08-09 04:25:47 +00:00
Neil Brown
f277ce3671
Assorted Fixes for multiple bugs.
...
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>
2005-08-04 04:41:12 +00:00
Neil Brown
8f23b0b3fa
Replace sprintf calls with snprintf
...
To quiet diet-libc
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:42:13 +00:00
Neil Brown
55935d5180
Add support for internal bitmaps
...
For version 0.90 superblocks, an internal bitmap can be specified at create.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:03:47 +00:00
Neil Brown
c82f047cfc
Initial bitmap support
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:16:35 +00:00