diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2018-02-01 11:37:16 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-02-05 08:26:22 +0100 |
commit | 119147ebfd2827558b6d27e525c2d8da6bf2865a (patch) | |
tree | b14c0062c78a231906e9795a8488a49967ee942e /include | |
parent | 9eb45f4f3c3f038abbd32890c9fa95a1ebb302cb (diff) | |
download | barebox-119147ebfd2827558b6d27e525c2d8da6bf2865a.tar.gz barebox-119147ebfd2827558b6d27e525c2d8da6bf2865a.tar.xz |
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 <p.zabel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/filetype.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |