Contents of /trunk/mkinitrd-magellan/klibc/usr/kinit/fstype/fstype.h
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 494 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 494 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | /* |
2 | * by rmk |
3 | * |
4 | * Detect filesystem type (on stdin) and output strings for two |
5 | * environment variables: |
6 | * FSTYPE - filesystem type |
7 | * FSSIZE - filesystem size (if known) |
8 | * |
9 | * We currently detect (in order): |
10 | * gzip, cramfs, romfs, xfs, minix, ext3, ext2, reiserfs, jfs |
11 | * |
12 | * MINIX, ext3 and Reiserfs bits are currently untested. |
13 | */ |
14 | |
15 | #ifndef FSTYPE_H |
16 | #define FSTYPE_H |
17 | |
18 | #include <unistd.h> |
19 | |
20 | int identify_fs(int fd, const char **fstype, |
21 | unsigned long long *bytes, off_t offset); |
22 | |
23 | #endif |