summaryrefslogtreecommitdiffstats
path: root/include/filetype.h
diff options
context:
space:
mode:
authorVicente Bergas <vicencb@gmail.com>2015-10-02 00:08:38 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-10-02 09:10:16 +0200
commite89f1a1f188c196eade0d2ad05b662326d870be3 (patch)
tree6b7fe46d3a75db2d8862c34244c6f02d3142fdfc /include/filetype.h
parentbdb26b1727e1e20f03021fc2f25afc9b3011813e (diff)
downloadbarebox-e89f1a1f188c196eade0d2ad05b662326d870be3.tar.gz
detect_fs: use device instead of file
detect_fs would usually mount a device on a directory, so, use a device-specific type detection. Signed-off-by: Vicente Bergas <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/filetype.h')
-rw-r--r--include/filetype.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/filetype.h b/include/filetype.h
index e452b7a..cde543e 100644
--- a/include/filetype.h
+++ b/include/filetype.h
@@ -45,6 +45,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 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);