diff options
Diffstat (limited to 'serverboot/minix_super.h')
-rw-r--r-- | serverboot/minix_super.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/serverboot/minix_super.h b/serverboot/minix_super.h new file mode 100644 index 00000000..144cf064 --- /dev/null +++ b/serverboot/minix_super.h @@ -0,0 +1,49 @@ +/* + * minix_super.h + * stolen from the Linux distribution + * Copyright (C) 1994 Linus Torvalds + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef _LINUX_MINIX_FS_H +#define _LINUX_MINIX_FS_H + +struct minix_super_block { + unsigned short s_ninodes; + unsigned short s_nzones; + unsigned short s_imap_blocks; + unsigned short s_zmap_blocks; + unsigned short s_firstdatazone; + unsigned short s_log_zone_size; + unsigned long s_max_size; + unsigned short s_magic; + unsigned short s_state; +}; + + +struct minix_inode { + unsigned short i_mode; + unsigned short i_uid; + unsigned long i_size; + unsigned long i_time; + unsigned char i_gid; + unsigned char i_nlinks; + unsigned short i_zone[9]; +}; + +#define MINIX_NIADDR 2 + +#endif |