Line
Link Here
|
0 |
-- a/plugin/vol/volume.c |
0 |
++ b/plugin/vol/volume.c |
Lines 34-41
Link Here
|
34 |
return max(min(val, high),low); |
34 |
return max(min(val, high),low); |
35 |
} |
35 |
} |
36 |
|
36 |
|
37 |
static int advise_stripe_size_simple(uint64_t *result, uint32_t block_size, |
37 |
static int advise_stripe_size_simple(uint64_t *result, uint64_t block_size, |
38 |
uint64_t block_count, int is_default, |
38 |
uint32_t block_count, int is_default, |
39 |
int forced) |
39 |
int forced) |
40 |
{ |
40 |
{ |
41 |
/* |
41 |
/* |
Lines 53-60
Link Here
|
53 |
return 0; |
53 |
return 0; |
54 |
} |
54 |
} |
55 |
|
55 |
|
56 |
static int advise_stripe_size_asym(uint64_t *result, uint32_t block_size, |
56 |
static int advise_stripe_size_asym(uint64_t *result, uint64_t block_size, |
57 |
uint64_t block_count, int is_default, |
57 |
uint32_t block_count, int is_default, |
58 |
int forced) |
58 |
int forced) |
59 |
{ |
59 |
{ |
60 |
uint64_t advised; |
60 |
uint64_t advised; |
Lines 150-156
Link Here
|
150 |
return 0; |
150 |
return 0; |
151 |
} |
151 |
} |
152 |
|
152 |
|
153 |
static uint64_t default_data_capacity_simple(uint64_t free_blocks) |
153 |
static uint64_t default_data_capacity_simple(uint64_t free_blocks, int data_brick) |
154 |
{ |
154 |
{ |
155 |
return 0; |
155 |
return 0; |
156 |
} |
156 |
} |
157 |
-- a/libreiser4/filesystem.c |
157 |
++ b/libreiser4/filesystem.c |
Lines 352-357
Link Here
|
352 |
return NULL; |
352 |
return NULL; |
353 |
} |
353 |
} |
354 |
|
354 |
|
|
|
355 |
void reiser4_format_set_data_capacity( |
356 |
reiser4_format_t *format, |
357 |
count_t blocks); |
358 |
|
355 |
void reiser4_set_data_capacity(reiser4_fs_t *fs, fs_hint_t *hint) |
359 |
void reiser4_set_data_capacity(reiser4_fs_t *fs, fs_hint_t *hint) |
356 |
{ |
360 |
{ |
357 |
if (hint->data_capacity == 0) { |
361 |
if (hint->data_capacity == 0) { |
Lines 363-368
Link Here
|
363 |
reiser4_format_set_data_capacity(fs->format, hint->data_capacity); |
367 |
reiser4_format_set_data_capacity(fs->format, hint->data_capacity); |
364 |
} |
368 |
} |
365 |
|
369 |
|
|
|
370 |
void reiser4_format_set_min_occup( |
371 |
reiser4_format_t *format, |
372 |
count_t blocks); |
373 |
|
366 |
/** |
374 |
/** |
367 |
* This is called at the end of the procedure of formatting a partition |
375 |
* This is called at the end of the procedure of formatting a partition |
368 |
*/ |
376 |
*/ |