Lines 27-33
Link Here
|
27 |
#include <plugin.h> |
27 |
#include <plugin.h> |
28 |
#include <fcntl.h> |
28 |
#include <fcntl.h> |
29 |
#include <sys/wait.h> |
29 |
#include <sys/wait.h> |
30 |
#include <asm/page.h> /* to get PAGE_SIZE */ |
|
|
31 |
#include <sys/swap.h> |
30 |
#include <sys/swap.h> |
32 |
|
31 |
|
33 |
#include "swapfs.h" |
32 |
#include "swapfs.h" |
Lines 341-347
static int swap_get_fs_limits(logical_vo
Link Here
|
341 |
|
340 |
|
342 |
*max_volume_size = (sector_count_t)-1; /* No limit. */ |
341 |
*max_volume_size = (sector_count_t)-1; /* No limit. */ |
343 |
*max_object_size = (sector_count_t)-1; /* No limit. */ |
342 |
*max_object_size = (sector_count_t)-1; /* No limit. */ |
344 |
*min_size = (sector_count_t)(PAGE_SIZE * 10); /* 10 page minimum. */ |
343 |
*min_size = (sector_count_t)(sysconf(_SC_PAGESIZE) * 10); /* 10 page minimum. */ |
345 |
|
344 |
|
346 |
LOG_EXTRA("Volume: %s, min: %"PRIu64", max: %"PRIu64"\n", |
345 |
LOG_EXTRA("Volume: %s, min: %"PRIu64", max: %"PRIu64"\n", |
347 |
volume->name, *min_size, *max_volume_size); |
346 |
volume->name, *min_size, *max_volume_size); |