OSDN Git Service

Use the new version of android_fork_execvp_ext()
authorYusuke Sato <yusukes@google.com>
Tue, 18 Aug 2015 19:10:45 +0000 (12:10 -0700)
committerYusuke Sato <yusukes@google.com>
Wed, 19 Aug 2015 06:08:55 +0000 (23:08 -0700)
This CL depends on I818f5cf61045286c8d64a91b6d50f05740329be1.

Bug: 21725996
Change-Id: I2d26cf79989de717b7695757d0297a16dedbebbd

puncture_fs/puncture_fs.c
tests/fstest/recovery_test.cpp

index 3f7e4a7..e9d08dc 100644 (file)
@@ -187,7 +187,7 @@ static bool puncture_fs (const char * const path, const u64 total_size,
     free(base_file_data);
     rm_bin_argv[2] = delete_dir;
     if (android_fork_execvp_ext(ARRAY_SIZE(rm_bin_argv), rm_bin_argv,
-                                NULL, 1, LOG_KLOG, 0, NULL) < 0) {
+                                NULL, 1, LOG_KLOG, 0, NULL, NULL, 0) < 0) {
         fprintf(stderr, "\nFailed to delete %s\n", rm_bin_argv[2]);
         return false;
     }
index 4121a87..f8d41c3 100644 (file)
@@ -222,7 +222,8 @@ class FsRecoveryTest : public ::testing::Test {
     };
     int status;
     return android_fork_execvp_ext(ARRAY_SIZE(umount_argv), umount_argv,
-                                   NULL, true, LOG_KLOG, false, NULL) >= 0;
+                                   NULL, true, LOG_KLOG, false, NULL,
+                                   NULL, 0) >= 0;
   }
 
   bool mountAll() {
@@ -233,7 +234,8 @@ class FsRecoveryTest : public ::testing::Test {
     };
     int status;
     return android_fork_execvp_ext(ARRAY_SIZE(mountall_argv), mountall_argv,
-                                   NULL, true, LOG_KLOG, false, NULL) >= 0;
+                                   NULL, true, LOG_KLOG, false, NULL,
+                                   NULL, 0) >= 0;
   }
 
   int getCacheBlkFd() {