~ubuntu-branches/ubuntu/karmic/mdadm/karmic

« back to all changes in this revision

Viewing changes to mdadm.h

  • Committer: Package Import Robot
  • Author(s): Scott James Remnant
  • Date: 2007-12-12 22:35:09 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20071212223509-10l2hitpp068jr53
Tags: 2.6.3+200709292116+4450e59-3ubuntu1
* Merge from debian unstable, remaining changes:
 * md activation:
  - We now have a single udev rule for both the real system and the
    initramfs, since doing things differently there will only result in bugs
    and confusion.
  - This rule runs "mdadm --assemble --scan --no-degraded", automatically
    activating any non-degraded device as their components are detected.
  - Drop the mdadm-raid init script, since this does the same thing.
  - Also drop mdadm-startall which uses the mdadm-raid init script, and its
    associated sgml file (thus dropping the build-dep on docbook-to-man)
  - Simplify the configuration, since we always autostart all devices so do
    not need to specify any required root devices, etc.
  - Drop the deprecated mdrun entirely.
  - Since udev autostarts arrays, much of the initramfs script can be
    dropped.
 * Install a new udev rule at 65 which runs vol_id on clean raid arrays.
   This will cause lvm, etc. to be run (since there is vol_id information
   present for the enclosed filesystem).
 * Depend on initramfs-tools, specifically a version that doesn't ship
   the mdrun script.  This way we can clean out a lot of the upgrade handling
   from the initramfs hook.
 * Just get initramfs to load the modules for us

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
#define _GNU_SOURCE
31
31
#include        <unistd.h>
32
 
#ifndef __dietlibc__
 
32
#if !defined(__dietlibc__) && !defined(__KLIBC__)
33
33
extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
34
34
#else
35
35
# if defined(__NO_STAT64) || __WORDSIZE != 32
97
97
                     ((x) & 0x00000000ff000000ULL) << 8 | \
98
98
                     ((x) & 0x000000ff00000000ULL) >> 8)
99
99
 
 
100
#if !defined(__KLIBC__)
100
101
#if BYTE_ORDER == LITTLE_ENDIAN
101
102
#define __cpu_to_le16(_x) (_x)
102
103
#define __cpu_to_le32(_x) (_x)
114
115
#else
115
116
#  error "unknown endianness."
116
117
#endif
 
118
#endif /* __KLIBC__ */
117
119
 
118
120
 
119
121
 
155
157
};
156
158
 
157
159
extern char short_options[];
 
160
extern char short_bitmap_options[];
158
161
extern char short_bitmap_auto_options[];
159
162
extern struct option long_options[];
160
163
extern char Version[], Usage[], Help[], OptionHelp[],
397
400
# undef HAVE_NFTW
398
401
#endif
399
402
 
 
403
#if defined(__KLIBC__)
 
404
# undef HAVE_NFTW
 
405
# undef HAVE_FTW
 
406
#endif
 
407
 
400
408
#ifndef HAVE_NFTW
401
409
# define FTW_PHYS 1
402
410
# ifndef HAVE_FTW