aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-05-31 18:00:04 -0500
committerRob Landley <rob@landley.net>2014-05-31 18:00:04 -0500
commitf71abed76bd2eacc6ebf43663059631c7cf213ed (patch)
treeae21b3fdfe2f2246e6ca52a84681adf0b602218c /toys/pending
parent4d22a09d76ef09a169db48a4d6599d8a5fe547ad (diff)
downloadtoybox-f71abed76bd2eacc6ebf43663059631c7cf213ed.tar.gz
Promote partprobe.
Diffstat (limited to 'toys/pending')
-rw-r--r--toys/pending/partprobe.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/toys/pending/partprobe.c b/toys/pending/partprobe.c
deleted file mode 100644
index e0beb009..00000000
--- a/toys/pending/partprobe.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* partprobe.c - Tell the kernel about partition table changes
- *
- * Copyright 2014 Bertold Van den Bergh <vandenbergh@bertold.org>
- *
- * see http://man7.org/linux/man-pages/man8/partprobe.8.html
-
-USE_PARTPROBE(NEWTOY(partprobe, "<1", TOYFLAG_SBIN))
-
-config PARTPROBE
- bool "partprobe"
- default n
- help
- usage: partprobe DEVICE...
-
- Tell the kernel about partition table changes
-
- Ask the kernel to re-read the partition table on the specified devices.
-*/
-
-#include "toys.h"
-
-static void do_partprobe(int fd, char *name)
-{
- if (ioctl(fd, BLKRRPART, 0)) perror_msg("ioctl failed");
-}
-
-void partprobe_main(void)
-{
- loopfiles(toys.optargs, do_partprobe);
-}