1 --- busybox-1.3.1.orig/coreutils/df.c 2006-12-26 22:54:50.000000000 -0600
2 +++ busybox-1.3.1/coreutils/df.c 2006-12-30 00:45:10.000000000 -0600
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 opt_complementary = "h-km:k-hm:m-hk";
15 - const char *mount_point;
19 mount_entry = getmntent(mount_table);
21 ) / (blocks_used + s.f_bavail);
24 - if (strcmp(device, "rootfs") == 0) {
26 - } else if (strcmp(device, "/dev/root") == 0) {
27 + if (strcmp(device, "/dev/root") == 0 || strcmp(device, "rootfs") == 0) {
28 /* Adjusts device to be the real root device,
29 * or leaves device alone if it can't find it */
30 - device = find_block_device("/");
31 + device = find_block_device(mount_point);
37 + if (strcmp(mount_point, "/") == 0) {
38 + if (root_done) continue;
42 #ifdef CONFIG_FEATURE_HUMAN_READABLE
43 printf("%-20s %9s ", device,
44 make_human_readable_str(s.f_blocks, s.f_bsize, df_disp_hr));