Commits

Colin Cross  committed b1a2592 Merge

Merge "ext4_utils: export make_ext4fs_sparse_fd"

  • Participants
  • Parent commits 00724b6, 03ad99c

Comments (0)

Files changed (2)

File ext4_utils/make_ext4fs.c

     }
 }
 
+int make_ext4fs_sparse_fd(int fd, s64 len,
+                const char *mountpoint, struct selabel_handle *sehnd)
+{
+	reset_ext4fs_info();
+	info.len = len;
+
+	return make_ext4fs_internal(fd, NULL, mountpoint, NULL, 0, 1, 0, 0, 0, sehnd);
+}
+
 int make_ext4fs(const char *filename, s64 len,
                 const char *mountpoint, struct selabel_handle *sehnd)
 {

File ext4_utils/make_ext4fs.h

 void reset_ext4fs_info();
 int make_ext4fs(const char *filename, s64 len,
                 const char *mountpoint, struct selabel_handle *sehnd);
+int make_ext4fs_sparse_fd(int fd, s64 len,
+                const char *mountpoint, struct selabel_handle *sehnd);
 int make_ext4fs_internal(int fd, const char *directory,
                          const char *mountpoint, fs_config_func_t fs_config_func, int gzip,
                          int sparse, int crc, int wipe, int init_itabs,