From: <kc...@us...> - 2003-07-17 01:19:38
|
Update of /cvsroot/evms/evms2/engine/plugins/sparse In directory sc8-pr-cvs1:/tmp/cvs-serv27860/plugins/sparse Modified Files: sparsesegmgr.c sparsesegmgr.h Log Message: Mark large constants as ULL. Index: sparsesegmgr.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/plugins/sparse/sparsesegmgr.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- sparsesegmgr.c 16 Jul 2003 19:19:07 -0000 1.31 +++ sparsesegmgr.c 17 Jul 2003 01:19:35 -0000 1.32 @@ -1194,7 +1194,7 @@ volume->next_cow_entry < ( EVMS_VSECTOR_SIZE / sizeof( u_int64_t ) ) && volume->cow_table[volume->next_cow_entry] != - 0xffffffffffffffff; + 0xffffffffffffffffULL; volume->next_cow_entry++, volume->next_free_chunk++ ) { Index: sparsesegmgr.h =================================================================== RCS file: /cvsroot/evms/evms2/engine/plugins/sparse/sparsesegmgr.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- sparsesegmgr.h 21 Feb 2003 18:13:51 -0000 1.4 +++ sparsesegmgr.h 17 Jul 2003 01:19:35 -0000 1.5 @@ -60,9 +60,9 @@ #define SPARSE_MIN_CHUNK_SIZE 16 /* 8kB */ #define SPARSE_MAX_CHUNK_SIZE 2048 /* 1MB */ -#define SPARSE_DEFAULT_VIRTUAL_SIZE 0x80000000 -#define SPARSE_MIN_VIRTUAL_SIZE 2048*1024 -#define SPARSE_MAX_VIRTUAL_SIZE 0xffffffffffffffff +#define SPARSE_DEFAULT_VIRTUAL_SIZE 0x80000000 +#define SPARSE_MIN_VIRTUAL_SIZE 2048*1024 +#define SPARSE_MAX_VIRTUAL_SIZE 0xffffffffffffffffULL /* Option definitions */ #define SPARSE_OPTION_VIRTUALSIZE_NAME "virtualsize" // virtualsize |