2018-05-07 05:58:06 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2017-09-03 23:00:29 +08:00
|
|
|
/*
|
|
|
|
* BTRFS filesystem implementation for U-Boot
|
|
|
|
*
|
|
|
|
* 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __U_BOOT_BTRFS_H__
|
|
|
|
#define __U_BOOT_BTRFS_H__
|
|
|
|
|
2020-05-11 01:39:58 +08:00
|
|
|
struct blk_desc;
|
|
|
|
struct disk_partition;
|
|
|
|
|
2020-05-11 01:39:57 +08:00
|
|
|
int btrfs_probe(struct blk_desc *fs_dev_desc,
|
|
|
|
struct disk_partition *fs_partition);
|
2017-09-03 23:00:29 +08:00
|
|
|
int btrfs_ls(const char *);
|
|
|
|
int btrfs_exists(const char *);
|
|
|
|
int btrfs_size(const char *, loff_t *);
|
|
|
|
int btrfs_read(const char *, void *, loff_t, loff_t, loff_t *);
|
|
|
|
void btrfs_close(void);
|
|
|
|
int btrfs_uuid(char *);
|
|
|
|
void btrfs_list_subvols(void);
|
|
|
|
|
|
|
|
#endif /* __U_BOOT_BTRFS_H__ */
|