swapon: reinstate hole check but reduce it to warning
inode_hash: remove unused variable
This commit is contained in:
parent
7f2527e5a7
commit
5659407595
@ -53,7 +53,6 @@ char *is_in_ino_dev_hashtable(const struct stat *statbuf)
|
|||||||
void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name)
|
void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
size_t s;
|
|
||||||
ino_dev_hashtable_bucket_t *bucket;
|
ino_dev_hashtable_bucket_t *bucket;
|
||||||
|
|
||||||
i = hash_inode(statbuf->st_ino);
|
i = hash_inode(statbuf->st_ino);
|
||||||
|
@ -18,11 +18,11 @@ static int swap_enable_disable(char *device)
|
|||||||
|
|
||||||
xstat(device, &st);
|
xstat(device, &st);
|
||||||
|
|
||||||
#ifdef BLOAT
|
#if ENABLE_DESKTOP
|
||||||
/* test for holes */
|
/* test for holes */
|
||||||
if (S_ISREG(st.st_mode))
|
if (S_ISREG(st.st_mode))
|
||||||
if (st.st_blocks * 512 < st.st_size)
|
if (st.st_blocks * 512 < st.st_size)
|
||||||
bb_error_msg_and_die("swap file has holes");
|
bb_error_msg("warning: swap file has holes");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (applet_name[5] == 'n')
|
if (applet_name[5] == 'n')
|
||||||
|
Loading…
Reference in New Issue
Block a user