diff options
Diffstat (limited to 'usr/kinit/fstype/fstype.h')
-rw-r--r-- | usr/kinit/fstype/fstype.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/usr/kinit/fstype/fstype.h b/usr/kinit/fstype/fstype.h new file mode 100644 index 0000000..be2a3e4 --- /dev/null +++ b/usr/kinit/fstype/fstype.h @@ -0,0 +1,20 @@ +/* + * by rmk + * + * Detect filesystem type (on stdin) and output strings for two + * environment variables: + * FSTYPE - filesystem type + * FSSIZE - filesystem size (if known) + * + * We currently detect the fs listed in struct imagetype. + */ + +#ifndef FSTYPE_H +#define FSTYPE_H + +#include <unistd.h> + +int identify_fs(int fd, const char **fstype, + unsigned long long *bytes, off_t offset); + +#endif |