mirror of
https://github.com/kdave/btrfs-progs
synced 2025-03-07 11:17:46 +00:00
Also rename the function from size_sourcedir() to mkfs_size_dir(). Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
37 lines
1.0 KiB
C
37 lines
1.0 KiB
C
/*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public
|
|
* License v2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public
|
|
* License along with this program.
|
|
*/
|
|
|
|
/*
|
|
* Defines and functions declarations for mkfs --rootdir
|
|
*/
|
|
|
|
#ifndef __BTRFS_MKFS_ROOTDIR_H__
|
|
#define __BTRFS_MKFS_ROOTDIR_H__
|
|
|
|
#include "kernel-lib/list.h"
|
|
|
|
struct directory_name_entry {
|
|
const char *dir_name;
|
|
const char *path;
|
|
ino_t inum;
|
|
struct list_head list;
|
|
};
|
|
|
|
int btrfs_mkfs_fill_dir(const char *source_dir, struct btrfs_root *root,
|
|
bool verbose);
|
|
u64 btrfs_mkfs_size_dir(const char *dir_name, u64 sectorsize,
|
|
u64 *num_of_meta_chunks_ret, u64 *size_of_data_ret);
|
|
|
|
#endif
|