~ubuntu-branches/ubuntu/precise/util-linux/precise

« back to all changes in this revision

Viewing changes to disk-utils/minix.h

  • Committer: Package Import Robot
  • Author(s): Steve Langasek
  • Date: 2011-12-16 22:53:42 UTC
  • mfrom: (1.6.4) (4.5.5 sid)
  • Revision ID: package-import@ubuntu.com-20111216225342-206wz4bhvutyvx0d
Tags: 2.20.1-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Build for multiarch.
  - Add pre-depends on multiarch-support.
  - configure.ac: don't try to be clever about extracting a path name from
    $libdir to append to /usr in a way that's not overridable; instead,
    reuse the built-in configurable libexecdir.
  - Fix up the .pc.in files to know about libexecdir, so our substitutions
    don't leave us with unusable pkg-config files.
  - Install custom blkid.conf to use /dev/.blkid.tab since we don't
    expect device names to survive a reboot
  - Mention mountall(8) in fstab(5) manpages, along with its special
    options.
  - Since upstart is required in Ubuntu, the hwclock.sh init script is not
    called on startup and the hwclockfirst.sh init script is removed.
  - Drop depends on initscripts for the above.
  - Replace hwclock udev rule with an Upstart job.
  - For the case where mount is called with a directory to mount, look
    that directory up in mountall's /lib/init/fstab if we couldn't find
    it mentioned anywhere else.  This means "mount /proc", "mount /sys",
    etc. work.
  - mount.8 points to the cifs-utils package, not the obsolete smbfs one. 
  - Use canonicalize_spec in getmntdevbackward. proc should not be
    interpreted as a non-canonical-path.
* Dropped changes, superseded upstream:
  - shlibs/mount/src/tab_update.c: don't refuse to update mtab when source
    is 'none'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifdef KERNEL_INCLUDES_ARE_CLEAN
2
 
 
3
 
#include <linux/fs.h>
4
 
#include <linux/minix_fs.h>
5
 
 
6
 
#else
7
 
 
8
 
typedef unsigned char u8;
9
 
typedef unsigned short u16;
10
 
typedef unsigned int u32;
11
 
 
12
 
struct minix_inode {
13
 
        u16 i_mode;
14
 
        u16 i_uid;
15
 
        u32 i_size;
16
 
        u32 i_time;
17
 
        u8  i_gid;
18
 
        u8  i_nlinks;
19
 
        u16 i_zone[9];
20
 
};
21
 
 
22
 
struct minix2_inode {
23
 
        u16 i_mode;
24
 
        u16 i_nlinks;
25
 
        u16 i_uid;
26
 
        u16 i_gid;
27
 
        u32 i_size;
28
 
        u32 i_atime;
29
 
        u32 i_mtime;
30
 
        u32 i_ctime;
31
 
        u32 i_zone[10];
32
 
};
33
 
 
34
 
struct minix_super_block {
35
 
        u16 s_ninodes;
36
 
        u16 s_nzones;
37
 
        u16 s_imap_blocks;
38
 
        u16 s_zmap_blocks;
39
 
        u16 s_firstdatazone;
40
 
        u16 s_log_zone_size;
41
 
        u32 s_max_size;
42
 
        u16 s_magic;
43
 
        u16 s_state;
44
 
        u32 s_zones;
45
 
};
46
 
 
47
 
#define BLOCK_SIZE_BITS 10
48
 
#define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
49
 
 
50
 
#define NAME_MAX         255   /* # chars in a file name */
51
 
 
52
 
#define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix_inode)))
53
 
#define MINIX2_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix2_inode)))
54
 
 
55
 
#define MINIX_VALID_FS               0x0001          /* Clean fs. */
56
 
#define MINIX_ERROR_FS               0x0002          /* fs has errors. */
57
 
 
58
 
#define MINIX_SUPER_MAGIC    0x137F          /* original minix fs */
59
 
#define MINIX_SUPER_MAGIC2   0x138F          /* minix fs, 30 char names */
60
 
#define MINIX2_SUPER_MAGIC   0x2468          /* minix V2 fs */
61
 
#define MINIX2_SUPER_MAGIC2  0x2478          /* minix V2 fs, 30 char names */
62
 
 
63
 
#endif /* KERNEL_INCLUDES_ARE_CLEAN */