1 --- busybox-1.00/coreutils/df.c.orig 2006-07-14 09:50:47.914912750 -0400
2 +++ busybox-1.00/coreutils/df.c 2006-07-14 09:52:32.613456000 -0400
5 static const char hdr_1k[] = "1k-blocks"; /* default display is kilobytes */
6 const char *disp_units_hdr = hdr_1k;
9 #ifdef CONFIG_FEATURE_HUMAN_READABLE
10 bb_opt_complementaly = "h-km:k-hm:m-hk";
12 ) / (blocks_used + s.f_bavail);
15 - if (strcmp(device, "rootfs") == 0) {
17 - } else if (strcmp(device, "/dev/root") == 0) {
18 + if (strcmp(device, "/dev/root") == 0 || strcmp(device, "rootfs") == 0) {
19 + if (root_done) continue;
20 /* Adjusts device to be the real root device,
21 * or leaves device alone if it can't find it */
22 if ((device = find_real_root_device_name()) == NULL) {
28 #ifdef CONFIG_FEATURE_HUMAN_READABLE