changeset 1329:5662f0664060 draft

Promote partprobe.
author Rob Landley <rob@landley.net>
date Sat, 31 May 2014 18:00:04 -0500
parents a498d143be72
children 02e3df773122
files toys/other/partprobe.c toys/pending/partprobe.c
diffstat 2 files changed, 30 insertions(+), 30 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/toys/other/partprobe.c	Sat May 31 18:00:04 2014 -0500
@@ -0,0 +1,30 @@
+/* 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 y
+  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); 
+}
--- a/toys/pending/partprobe.c	Sat May 31 17:59:27 2014 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -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); 
-}