-
Notifications
You must be signed in to change notification settings - Fork 4
/
super.h
24 lines (17 loc) · 592 Bytes
/
super.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: MIT
#ifndef BTRFS_FUSE_SUPER_H
#define BTRFS_FUSE_SUPER_H
#include "ctree.h"
#include "volumes.h"
/*
* Read directly from physical @offset from disk.
*
* This is only used by superblock which is not chunk mapped.
*/
int btrfs_read_from_disk(int fd, char *buf, u64 offset, u32 len);
int btrfs_check_super(struct btrfs_super_block *sb);
/* The equivalent to open_ctree() of kernel/progs */
struct btrfs_fs_info *btrfs_mount(const char *path);
/* The equivalent to close_ctree() of kernel/progs */
void btrfs_unmount(struct btrfs_fs_info *fs_info);
#endif