From b05b0b5d3b01441d648782f552d9f7e2d7bfbbc1 Mon Sep 17 00:00:00 2001 From: Ken Sumrall Date: Wed, 18 May 2011 16:54:19 -0700 Subject: 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 --- include/cutils/partition_utils.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 include/cutils/partition_utils.h (limited to 'include') 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__ */ -- cgit v1.2.3