Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=2991f88666c6059aa24ba1ae392e1b4b223b1869
commit 2991f88666c6059aa24ba1ae392e1b4b223b1869 Author: James Buren <[email protected]> Date: Tue Feb 19 03:19:05 2013 -0600 add initial partition flushing code diff --git a/new/src/partition.c b/new/src/partition.c index 94a7eee..d7ffe60 100644 --- a/new/src/partition.c +++ b/new/src/partition.c @@ -21,6 +21,22 @@ static bool partition_setup(void) return true; } +static bool partition_flush(void) +{ + int i = 0; + + for( ; devices[i] != 0 ; ++i ) + { + if(disks[i] == 0) + continue; + + if(!disk_flush(disks[i])) + return false; + } + + return true; +} + static bool partition_run(void) { if(!partition_setup()) @@ -29,6 +45,9 @@ static bool partition_run(void) if(!ui_window_partition(devices,disks)) return false; + if(!partition_flush()) + return false; + return true; } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
