path: root/utils.h
diff options
authorSatoru Takeuchi <>2014-08-01 11:44:21 +0900
committerDavid Sterba <>2014-08-22 15:07:04 +0200
commit91b33340576e9c59353a89f0edb7b72a5a60ad3f (patch)
tree9d4419ca90279b312f22ab4b2f925b1c80bb2428 /utils.h
parentf0884b5dc30c134bcb87a43342ca26d0773295ee (diff)
btrfs-progs: introduce test_issubvolname() for simplicity
There are many duplicated codes to check if the given string is correct subvolume name. Introduce test_issubvolname() for this purpose for simplicity. Signed-off-by: Satoru Takeuchi <> Cc: David Sterba <> Cc: Mike Fleetwood <> Signed-off-by: David Sterba <>
Diffstat (limited to 'utils.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index d7d2ad5d..e3d80c10 100644
--- a/utils.h
+++ b/utils.h
@@ -116,6 +116,7 @@ int get_device_info(int fd, u64 devid,
int test_uuid_unique(char *fs_uuid);
int test_minimum_size(const char *file, u32 leafsize);
+int test_issubvolname(const char *name);
* Btrfs minimum size calculation is complicated, it should include at least: