sload_f2fs: update code for correct binary name
Change-Id: I7c14ec0b76d82d2b0951fd57fbc7184acc09d25a (cherry picked from commit 8833868a48b054c708650c136c9b27b48c901ce0)
This commit is contained in:
committed by
captainthrowback
parent
4e406a053a
commit
d5e2c5247e
+3
-3
@@ -2443,7 +2443,7 @@ bool TWPartition::Wipe_F2FS() {
|
||||
}
|
||||
|
||||
needs_casefold = android::base::GetBoolProperty("external_storage.casefold.enabled", false);
|
||||
needs_projid = android::base::GetBoolProperty("external_storage.projid.enabled", false);
|
||||
needs_projid = android::base::GetBoolProperty("external_storage.projid.enabled", false);
|
||||
unsigned long long dev_sz = TWFunc::IOCTL_Get_Block_Size(Actual_Block_Device.c_str());
|
||||
if (!dev_sz)
|
||||
return false;
|
||||
@@ -2460,8 +2460,8 @@ bool TWPartition::Wipe_F2FS() {
|
||||
|
||||
f2fs_command += " " + Actual_Block_Device + " " + dev_sz_str;
|
||||
|
||||
if (TWFunc::Path_Exists("/system/bin/sload.f2fs")) {
|
||||
f2fs_command += " && sload.f2fs -t /data " + Actual_Block_Device;
|
||||
if (TWFunc::Path_Exists("/system/bin/sload_f2fs")) {
|
||||
f2fs_command += " && sload_f2fs -t /data " + Actual_Block_Device;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user