]> pilppa.org Git - familiar-h63xx-build.git/commitdiff
busybox: apply patch to fix "df <path>".
authorTodd Blumer <todd@sdgsystems.com>
Fri, 7 Jul 2006 14:30:11 +0000 (16:30 +0200)
committerRene Wagner <rw@handhelds.org>
Fri, 7 Jul 2006 14:30:11 +0000 (16:30 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/packages/busybox/busybox-1.00/df.patch [new file with mode: 0644]
org.handhelds.familiar/packages/busybox/busybox-1.01/df.patch [new file with mode: 0644]
org.handhelds.familiar/packages/busybox/busybox_1.00.bb
org.handhelds.familiar/packages/busybox/busybox_1.01.bb

diff --git a/org.handhelds.familiar/packages/busybox/busybox-1.00/df.patch b/org.handhelds.familiar/packages/busybox/busybox-1.00/df.patch
new file mode 100644 (file)
index 0000000..5acb28d
--- /dev/null
@@ -0,0 +1,29 @@
+--- busybox-1.00/coreutils/df.c        2004-08-02 20:14:01.000000000 -0400
++++ busybox-1.00/coreutils/df.c.new    2006-06-29 10:56:43.256528750 -0400
+@@ -117,6 +117,8 @@
+               }
+               if ((s.f_blocks > 0) || !mount_table){
++                      int root_done = 0;
++
+                       blocks_used = s.f_blocks - s.f_bfree;
+                       blocks_percent_used = 0;
+                       if (blocks_used + s.f_bavail) {
+@@ -125,14 +127,14 @@
+                                                                          ) / (blocks_used + s.f_bavail);
+                       }
+-                      if (strcmp(device, "rootfs") == 0) {
+-                              continue;
+-                      } else if (strcmp(device, "/dev/root") == 0) {
++                      if (strcmp(device, "/dev/root") == 0 || strcmp(device, "rootfs") == 0) {
++                              if (root_done) continue;
+                               /* Adjusts device to be the real root device,
+                               * or leaves device alone if it can't find it */
+                               if ((device = find_real_root_device_name()) == NULL) {
+                                       goto SET_ERROR;
+                               }
++                              root_done = 1;
+                       }
+ #ifdef CONFIG_FEATURE_HUMAN_READABLE
diff --git a/org.handhelds.familiar/packages/busybox/busybox-1.01/df.patch b/org.handhelds.familiar/packages/busybox/busybox-1.01/df.patch
new file mode 100644 (file)
index 0000000..5acb28d
--- /dev/null
@@ -0,0 +1,29 @@
+--- busybox-1.00/coreutils/df.c        2004-08-02 20:14:01.000000000 -0400
++++ busybox-1.00/coreutils/df.c.new    2006-06-29 10:56:43.256528750 -0400
+@@ -117,6 +117,8 @@
+               }
+               if ((s.f_blocks > 0) || !mount_table){
++                      int root_done = 0;
++
+                       blocks_used = s.f_blocks - s.f_bfree;
+                       blocks_percent_used = 0;
+                       if (blocks_used + s.f_bavail) {
+@@ -125,14 +127,14 @@
+                                                                          ) / (blocks_used + s.f_bavail);
+                       }
+-                      if (strcmp(device, "rootfs") == 0) {
+-                              continue;
+-                      } else if (strcmp(device, "/dev/root") == 0) {
++                      if (strcmp(device, "/dev/root") == 0 || strcmp(device, "rootfs") == 0) {
++                              if (root_done) continue;
+                               /* Adjusts device to be the real root device,
+                               * or leaves device alone if it can't find it */
+                               if ((device = find_real_root_device_name()) == NULL) {
+                                       goto SET_ERROR;
+                               }
++                              root_done = 1;
+                       }
+ #ifdef CONFIG_FEATURE_HUMAN_READABLE
index 447bbad7472942e95eace2d346986468e7418e55..8659a496ce3c22ee7f71751ecc04156a742d4c94 100644 (file)
@@ -10,7 +10,7 @@ HOMEPAGE = "http://www.busybox.net"
 LICENSE = "GPL"
 SECTION = "base"
 PRIORITY = "required"
-PR = "r33"
+PR = "r34"
 
 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
            file://add-getkey-applet.patch;patch=1 \
@@ -22,6 +22,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
           file://readlink.patch;patch=1 \
           file://iproute-flush-cache.patch;patch=1;pnum=0 \
           file://rmmod.patch;patch=1 \
+          file://df.patch;patch=1 \
           file://below.patch;patch=1 \
           file://fbset.patch;patch=1 \
           file://mount-all-type.patch;patch=1 \
index edb9fad5eecf8563e8276ba27d3036120a4cd055..62482c6d398c4af20c2ffdc08e32c06e1476f119 100644 (file)
@@ -10,6 +10,7 @@ HOMEPAGE = "http://www.busybox.net"
 LICENSE = "GPL"
 SECTION = "base"
 PRIORITY = "required"
+PR = "r1"
 
 DEFAULT_PREFERENCE = "-1"
 DEFAULT_PREFERENCE_nslu2 = ""
@@ -28,6 +29,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
           file://mount-all-type.patch;patch=1 \
           file://readlink.patch;patch=1 \
           file://rmmod.patch;patch=1 \
+          file://df.patch;patch=1 \
           file://udhcpscript.patch;patch=1 \
            file://defconfig \
            file://busybox-cron \