mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-23 22:12:51 +00:00
btrfs-progs: add missing includes to header files
Add includes that let the header files compile or add explicit include of kerncompat if the uXX types are used. Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
76a9be2e72
commit
250a58f34d
@ -18,7 +18,6 @@
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/mount.h>
|
||||
#include "ioctl.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
@ -30,6 +29,7 @@
|
||||
#include "ctree.h"
|
||||
#include "transaction.h"
|
||||
#include "utils.h"
|
||||
#include "ioctl.h"
|
||||
#include <uuid/uuid.h>
|
||||
#include "btrfs-list.h"
|
||||
#include "rbtree-utils.h"
|
||||
|
@ -21,10 +21,16 @@
|
||||
|
||||
#if BTRFS_FLAT_INCLUDES
|
||||
#include "kerncompat.h"
|
||||
#include "rbtree.h"
|
||||
#include "ioctl.h"
|
||||
#else
|
||||
#include <btrfs/kerncompat.h>
|
||||
#include <btrfs/rbtree.h>
|
||||
#include <btrfs/ioctl.h>
|
||||
#endif /* BTRFS_FLAT_INCLUDES */
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#define BTRFS_LIST_LAYOUT_DEFAULT 0
|
||||
#define BTRFS_LIST_LAYOUT_TABLE 1
|
||||
#define BTRFS_LIST_LAYOUT_RAW 2
|
||||
|
@ -22,10 +22,12 @@
|
||||
|
||||
#if BTRFS_FLAT_INCLUDES
|
||||
#include "kerncompat.h"
|
||||
#include "ctree.h"
|
||||
#include "extent-cache.h"
|
||||
#include "list.h"
|
||||
#else
|
||||
#include <btrfs/kerncompat.h>
|
||||
#include <btrfs/ctree.h>
|
||||
#include <btrfs/extent-cache.h>
|
||||
#include <btrfs/list.h>
|
||||
#endif /* BTRFS_FLAT_INCLUDES */
|
||||
|
@ -19,6 +19,9 @@
|
||||
#ifndef __CMDS_FI_USAGE_H__
|
||||
#define __CMDS_FI_USAGE_H__
|
||||
|
||||
#include "kerncompat.h"
|
||||
#include "ioctl.h"
|
||||
|
||||
extern const char * const cmd_filesystem_usage_usage[];
|
||||
int cmd_filesystem_usage(int argc, char **argv);
|
||||
|
||||
|
@ -19,6 +19,9 @@
|
||||
#ifndef __BTRFS_DISK_IO_H__
|
||||
#define __BTRFS_DISK_IO_H__
|
||||
|
||||
#include "kerncompat.h"
|
||||
#include "ctree.h"
|
||||
|
||||
#define BTRFS_SUPER_INFO_OFFSET (64 * 1024)
|
||||
#define BTRFS_SUPER_INFO_SIZE 4096
|
||||
|
||||
|
@ -19,6 +19,10 @@
|
||||
#ifndef __BTRFS_FREE_SPACE_CACHE_H__
|
||||
#define __BTRFS_FREE_SPACE_CACHE_H__
|
||||
|
||||
#include "kerncompat.h"
|
||||
#include "ctree.h"
|
||||
#include "rbtree.h"
|
||||
|
||||
struct btrfs_free_space {
|
||||
struct rb_node offset_index;
|
||||
u64 offset;
|
||||
|
7
ioctl.h
7
ioctl.h
@ -19,14 +19,13 @@
|
||||
#ifndef __BTRFS_IOCTL_H__
|
||||
#define __BTRFS_IOCTL_H__
|
||||
|
||||
#include <asm/types.h>
|
||||
#include <linux/ioctl.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <asm/types.h>
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
#ifndef __user
|
||||
#define __user
|
||||
#endif
|
||||
|
@ -19,6 +19,9 @@
|
||||
#ifndef __BTRFS_QGROUP_VERIFY_H__
|
||||
#define __BTRFS_QGROUP_VERIFY_H__
|
||||
|
||||
#include "kerncompat.h"
|
||||
#include "ctree.h"
|
||||
|
||||
int qgroup_verify_all(struct btrfs_fs_info *info);
|
||||
void print_qgroup_report(int all);
|
||||
|
||||
|
2
qgroup.h
2
qgroup.h
@ -19,8 +19,8 @@
|
||||
#ifndef __BTRFS_QGROUP_H__
|
||||
#define __BTRFS_QGROUP_H__
|
||||
|
||||
#include "ioctl.h"
|
||||
#include "kerncompat.h"
|
||||
#include "ioctl.h"
|
||||
|
||||
struct btrfs_qgroup;
|
||||
|
||||
|
2
repair.h
2
repair.h
@ -19,6 +19,8 @@
|
||||
#ifndef __BTRFS_REPAIR_H__
|
||||
#define __BTRFS_REPAIR_H__
|
||||
|
||||
#include "ctree.h"
|
||||
|
||||
struct btrfs_corrupt_block {
|
||||
struct cache_extent cache;
|
||||
struct btrfs_key key;
|
||||
|
@ -28,6 +28,12 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if BTRFS_FLAT_INCLUDES
|
||||
#include "kerncompat.h"
|
||||
#else
|
||||
#include <btrfs/kerncompat.h>
|
||||
#endif /* BTRFS_FLAT_INCLUDES */
|
||||
|
||||
struct btrfs_send_ops {
|
||||
int (*subvol)(const char *path, const u8 *uuid, u64 ctransid,
|
||||
void *user);
|
||||
|
@ -20,9 +20,11 @@
|
||||
#define __BTRFS_SEND_UTILS_H__
|
||||
|
||||
#if BTRFS_FLAT_INCLUDES
|
||||
#include "kerncompat.h"
|
||||
#include "ctree.h"
|
||||
#include "rbtree.h"
|
||||
#else
|
||||
#include <btrfs/kerncompat.h>
|
||||
#include <btrfs/ctree.h>
|
||||
#include <btrfs/rbtree.h>
|
||||
#endif /* BTRFS_FLAT_INCLUDES */
|
||||
|
@ -19,6 +19,9 @@
|
||||
#ifndef __BTRFS_TRANSACTION_H__
|
||||
#define __BTRFS_TRANSACTION_H__
|
||||
|
||||
#include "kerncompat.h"
|
||||
#include "ctree.h"
|
||||
|
||||
struct btrfs_trans_handle {
|
||||
u64 transid;
|
||||
u64 alloc_exclude_start;
|
||||
|
Loading…
Reference in New Issue
Block a user