2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2017-09-03 15:00:28 +00:00
|
|
|
/*
|
|
|
|
* BTRFS filesystem implementation for U-Boot
|
|
|
|
*
|
|
|
|
* 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __BTRFS_BTRFS_H__
|
|
|
|
#define __BTRFS_BTRFS_H__
|
|
|
|
|
|
|
|
#include <linux/rbtree.h>
|
|
|
|
#include "conv-funcs.h"
|
|
|
|
|
|
|
|
extern struct btrfs_info btrfs_info;
|
2020-06-24 16:03:01 +00:00
|
|
|
extern struct btrfs_fs_info *current_fs_info;
|
2017-09-03 15:00:28 +00:00
|
|
|
|
|
|
|
/* compression.c */
|
|
|
|
u32 btrfs_decompress(u8 type, const char *, u32, char *, u32);
|
|
|
|
|
|
|
|
/* inode.c */
|
2020-06-24 16:03:03 +00:00
|
|
|
int btrfs_readlink(struct btrfs_root *root, u64 ino, char *target);
|
2020-06-24 16:03:11 +00:00
|
|
|
int btrfs_file_read(struct btrfs_root *root, u64 ino, u64 file_offset, u64 len,
|
|
|
|
char *dest);
|
2017-09-03 15:00:28 +00:00
|
|
|
|
|
|
|
/* subvolume.c */
|
|
|
|
u64 btrfs_get_default_subvol_objectid(void);
|
|
|
|
|
|
|
|
#endif /* !__BTRFS_BTRFS_H__ */
|