~ubuntu-branches/ubuntu/intrepid/devmapper/intrepid

« back to all changes in this revision

Viewing changes to lib/ioctl/libdm-compat.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2008-06-02 17:22:40 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080602172240-tb5pinmq9zxghxyb
Tags: 2:1.02.25-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - Call dmsetup from udev rules to name the device, so udev creates them
    if they do not already exist, and fill in information about the
    filesystem on the device afterwards.
    (forwarded to Debian #455746):
    + Add debian/dmsetup.udev: Naming udev rules.
    + debian/rules: Call dh_installudev to install above file.
    + debian/control: Add Recommends: dmsetup to the library and the udeb.
  - Support udev-controlled devmapper in initramfs, for consistent device
    discovery/naming during boot and hotplug:
    + Add debian/dmsetup.initramfs: Hook for copying dmsetup and udev rules
      to the initramfs.
    + debian/rules: Copy hook to build directory.
    + debian/dmsetup.install: Install above file from build directory.
    + debian/dmsetup.postinst: Call update-initramfs.
  - debian/rules: Copy po/device-mapper.po to device-mapper.pot so Rosetta
    has a POT file to import.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
3
 
 * Copyright (C) 2004 Red Hat, Inc. All rights reserved.
 
3
 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
4
4
 *
5
5
 * This file is part of the device-mapper userspace tools.
6
6
 *
19
19
#include "kdev_t.h"
20
20
#include <inttypes.h>
21
21
#include <linux/dm-ioctl.h>
22
 
#include <linux/types.h>
23
22
#include <sys/ioctl.h>
24
23
 
25
24
struct dm_task;
41
40
        int32_t open_count;     /* out */
42
41
        uint32_t flags;         /* in/out */
43
42
 
44
 
        my_kernel_dev_t dev;    /* in/out */
 
43
        __kernel_dev_t dev;     /* in/out */
45
44
 
46
45
        char name[DM_NAME_LEN]; /* device name */
47
46
        char uuid[DM_UUID_LEN]; /* unique identifier for
61
60
struct dm_target_deps_v1 {
62
61
        uint32_t count;
63
62
 
64
 
        my_kernel_dev_t dev[0]; /* out */
 
63
        __kernel_dev_t dev[0];  /* out */
65
64
};
66
65
 
67
66
enum {