[cmdline] Add "sync" command

Add "sync" command (loosely based on the Unix "sync"), which will wait
for any pending operations to complete.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2012-06-09 19:00:04 +01:00
parent af47789ef2
commit addf699c86
3 changed files with 86 additions and 0 deletions

View File

@@ -241,6 +241,9 @@ REQUIRE_OBJECT ( reboot_cmd );
#ifdef CPUID_CMD
REQUIRE_OBJECT ( cpuid_cmd );
#endif
#ifdef SYNC_CMD
REQUIRE_OBJECT ( sync_cmd );
#endif
/*
* Drag in miscellaneous objects

View File

@@ -117,6 +117,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define SANBOOT_CMD /* SAN boot commands */
#define MENU_CMD /* Menu commands */
#define LOGIN_CMD /* Login command */
#define SYNC_CMD /* Sync command */
//#define TIME_CMD /* Time commands */
//#define DIGEST_CMD /* Image crypto digest commands */
//#define LOTEST_CMD /* Loopback testing commands */