aboutsummaryrefslogtreecommitdiff
path: root/util-linux/swaponoff.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-14 22:55:39 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-14 22:55:39 +0000
commit56594075951157801d172851ec38b0eee1b0f44b (patch)
tree790c7b63197a0ad8011a47b2decdefbe3fc62c96 /util-linux/swaponoff.c
parent7f2527e5a7f513b9f415643ddc0ecd236b596887 (diff)
downloadbusybox-w32-56594075951157801d172851ec38b0eee1b0f44b.tar.gz
busybox-w32-56594075951157801d172851ec38b0eee1b0f44b.tar.bz2
busybox-w32-56594075951157801d172851ec38b0eee1b0f44b.zip
swapon: reinstate hole check but reduce it to warning
inode_hash: remove unused variable
Diffstat (limited to 'util-linux/swaponoff.c')
-rw-r--r--util-linux/swaponoff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 3a6afe29e..893003549 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -18,11 +18,11 @@ static int swap_enable_disable(char *device)
18 18
19 xstat(device, &st); 19 xstat(device, &st);
20 20
21#ifdef BLOAT 21#if ENABLE_DESKTOP
22 /* test for holes */ 22 /* test for holes */
23 if (S_ISREG(st.st_mode)) 23 if (S_ISREG(st.st_mode))
24 if (st.st_blocks * 512 < st.st_size) 24 if (st.st_blocks * 512 < st.st_size)
25 bb_error_msg_and_die("swap file has holes"); 25 bb_error_msg("warning: swap file has holes");
26#endif 26#endif
27 27
28 if (applet_name[5] == 'n') 28 if (applet_name[5] == 'n')