path: root/include/filetype.h
diff options
authorPhilipp Zabel <>2018-02-01 11:37:16 +0100
committerSascha Hauer <>2018-02-05 08:26:22 +0100
commit119147ebfd2827558b6d27e525c2d8da6bf2865a (patch)
treeb14c0062c78a231906e9795a8488a49967ee942e /include/filetype.h
parent9eb45f4f3c3f038abbd32890c9fa95a1ebb302cb (diff)
filetype: Add type detection at an offset
Add file_name_detect_type_offset to allow file system detection for loop mounts at an offset. Signed-off-by: Philipp Zabel <> Signed-off-by: Sascha Hauer <>
Diffstat (limited to 'include/filetype.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/filetype.h b/include/filetype.h
index b98dcb5..ec5aea2 100644
--- a/include/filetype.h
+++ b/include/filetype.h
@@ -50,6 +50,7 @@ const char *file_type_to_short_string(enum filetype f);
enum filetype file_detect_partition_table(const void *_buf, size_t bufsize);
enum filetype file_detect_type(const void *_buf, size_t bufsize);
enum filetype file_name_detect_type(const char *filename);
+enum filetype file_name_detect_type_offset(const char *filename, loff_t pos);
enum filetype cdev_detect_type(const char *name);
enum filetype is_fat_or_mbr(const unsigned char *sector, unsigned long *bootsec);
int is_fat_boot_sector(const void *_buf);