Extend make_ext4fs() interface to allow callers to pass selabel_handle.
Extend make_ext4fs() to allow callers to pass an selabel_handle for
labeling files in the ext4 image. Previously, this was only done
via the _internal() function. This extends the library interface
so that it can be used by the recovery and updater code for labeling
files from OTA and update packages.
Change-Id: I4f6755fe7c65b69587276d17ef5b971ebec0161f
diff --git a/ext4_utils/make_ext4fs.h b/ext4_utils/make_ext4fs.h
index 1f10bbf..53ff840 100644
--- a/ext4_utils/make_ext4fs.h
+++ b/ext4_utils/make_ext4fs.h
@@ -28,9 +28,11 @@
#endif
void reset_ext4fs_info();
-int make_ext4fs(const char *filename, s64 len);
+int make_ext4fs(const char *filename, s64 len,
+ const char *mountpoint, struct selabel_handle *sehnd);
int make_ext4fs_internal(const char *filename, const char *directory,
- char *mountpoint, int android, int gzip, int sparse,
+ const char *mountpoint,
+ int android, int gzip, int sparse,
int crc, int wipe, int init_itabs,
struct selabel_handle *sehnd);