path: root/utils.h
diff options
authorEric Sandeen <>2013-08-09 15:20:47 -0500
committerDavid Sterba <>2013-09-03 19:40:54 +0200
commitfa25b35dcc39854a9f7399af86e56a34171f63a4 (patch)
tree21d7485eacb2cd1314170859ea7ed316e65052a5 /utils.h
parent116123c5f21bdb9e35abaf470592186c2353920c (diff)
btrfs-progs: mark static & remove unused from non-kernel code
Mark many functions as static, and remove any resulting dead code. Signed-off-by: Eric Sandeen <> Signed-off-by: David Sterba <> Signed-off-by: Chris Mason <>
Diffstat (limited to 'utils.h')
1 files changed, 0 insertions, 3 deletions
diff --git a/utils.h b/utils.h
index 5b95f3b6..cd2fcb5f 100644
--- a/utils.h
+++ b/utils.h
@@ -61,8 +61,6 @@ int btrfs_scan_block_devices(int run_ioctl);
u64 parse_size(char *s);
int open_file_or_dir(const char *fname, DIR **dirstream);
void close_file_or_dir(int fd, DIR *dirstream);
-int get_device_info(int fd, u64 devid,
- struct btrfs_ioctl_dev_info_args *di_args);
int get_fs_info(char *path, struct btrfs_ioctl_fs_info_args *fi_args,
struct btrfs_ioctl_dev_info_args **di_ret);
int get_label(const char *btrfs_dev);
@@ -71,7 +69,6 @@ int set_label(const char *btrfs_dev, const char *label);
char *__strncpy__null(char *dest, const char *src, size_t n);
int is_block_device(const char *file);
int open_path_or_dev_mnt(const char *path, DIR **dirstream);
-int is_swap_device(const char *file);
u64 btrfs_device_size(int fd, struct stat *st);
/* Helper to always get proper size of the destination string */
#define strncpy_null(dest, src) __strncpy__null(dest, src, sizeof(dest))