From 119147ebfd2827558b6d27e525c2d8da6bf2865a Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Thu, 1 Feb 2018 11:37:16 +0100 Subject: 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 --- include/filetype.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/filetype.h') diff --git a/include/filetype.h b/include/filetype.h index b98dcb5014..ec5aea2635 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); -- cgit v1.2.3