Lines Matching refs:mountpoint
422 const char *mountpoint, struct selabel_handle *sehnd) in make_ext4fs_sparse_fd() argument
424 return make_ext4fs_sparse_fd_directory(fd, len, mountpoint, sehnd, NULL); in make_ext4fs_sparse_fd()
428 const char *mountpoint, struct selabel_handle *sehnd, in make_ext4fs_sparse_fd_directory() argument
434 return make_ext4fs_internal(fd, directory, NULL, mountpoint, NULL, in make_ext4fs_sparse_fd_directory()
440 const char *mountpoint, struct selabel_handle *sehnd) in make_ext4fs() argument
442 return make_ext4fs_directory(filename, len, mountpoint, sehnd, NULL); in make_ext4fs()
446 const char *mountpoint, struct selabel_handle *sehnd, in make_ext4fs_directory() argument
461 status = make_ext4fs_internal(fd, directory, NULL, mountpoint, NULL, in make_ext4fs_directory()
546 static void extract_base_fs_allocations(const char *directory, const char *mountpoint, in extract_base_fs_allocations() argument
587 if (strlen(stored_file_name) < strlen(mountpoint)) { in extract_base_fs_allocations()
590 snprintf(real_file_name, MAX_PATH, "%s%s", directory, stored_file_name + strlen(mountpoint)); in extract_base_fs_allocations()
662 void generate_base_alloc_file_out(FILE* base_alloc_file_out, char* dir, char* mountpoint, in generate_base_alloc_file_out() argument
671 fprintf(base_alloc_file_out, "%s%s", mountpoint, p->filename + dirlen); in generate_base_alloc_file_out()
689 char *mountpoint; in make_ext4fs_internal() local
705 mountpoint = strdup(""); in make_ext4fs_internal()
707 mountpoint = canonicalize_abs_slashes(_mountpoint); in make_ext4fs_internal()
792 extract_base_fs_allocations(directory, mountpoint, base_alloc_file_in); in make_ext4fs_internal()
806 root_inode_num = build_default_directory_structure(mountpoint, sehnd); in make_ext4fs_internal()
809 root_inode_num = build_directory_structure(directory, mountpoint, target_out_directory, 0, in make_ext4fs_internal()
812 root_inode_num = build_default_directory_structure(mountpoint, sehnd); in make_ext4fs_internal()
822 if (selabel_lookup(sehnd, &secontext, mountpoint, S_IFDIR) < 0) { in make_ext4fs_internal()
823 error("cannot lookup security context for %s", mountpoint); in make_ext4fs_internal()
827 printf("Labeling %s as %s\n", mountpoint, secontext); in make_ext4fs_internal()
845 fprintf(block_list_file, "%s%s", mountpoint, p->filename + dirlen); in make_ext4fs_internal()
857 generate_base_alloc_file_out(base_alloc_file_out, directory, mountpoint, p); in make_ext4fs_internal()
882 free(mountpoint); in make_ext4fs_internal()