diff options
| author | Ken Sumrall <ksumrall@android.com> | 2011-05-18 16:54:19 -0700 |
|---|---|---|
| committer | Ken Sumrall <ksumrall@android.com> | 2011-05-26 19:42:32 -0700 |
| commit | b05b0b5d3b01441d648782f552d9f7e2d7bfbbc1 (patch) | |
| tree | feb91231555b4eda018dadfd16605075cf78db3e /include/cutils | |
| parent | 1ffdb38213d177a83d74e1dc3bf41237dcbe8c9a (diff) | |
| download | system_core-b05b0b5d3b01441d648782f552d9f7e2d7bfbbc1.tar.gz system_core-b05b0b5d3b01441d648782f552d9f7e2d7bfbbc1.tar.bz2 system_core-b05b0b5d3b01441d648782f552d9f7e2d7bfbbc1.zip | |
Crypto changes for devices that don't write ext4 fs on wipe
This adds a new function to libcutils, partition_wiped().
This is used to determine if a partition is wiped.
Change-Id: Ibb388976c6b5bd3923b62d8f79b2b97748abf6c1
Diffstat (limited to 'include/cutils')
| -rw-r--r-- | include/cutils/partition_utils.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/cutils/partition_utils.h b/include/cutils/partition_utils.h new file mode 100644 index 00000000..597df925 --- /dev/null +++ b/include/cutils/partition_utils.h @@ -0,0 +1,27 @@ +/* + * Copyright 2011, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __CUTILS_PARTITION_WIPED_H__ +#define __CUTILS_PARTITION_WIPED_H__ + +__BEGIN_DECLS + +int partition_wiped(char *source); +void erase_footer(const char *dev_path, long long size); + +__END_DECLS + +#endif /* __CUTILS_PARTITION_WIPED_H__ */ |
