~psusi/ubuntu/precise/dmraid/fix-gpt

« back to all changes in this revision

Viewing changes to 1.0.0.rc15/lib/device/ata.h

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2010-02-04 21:34:22 UTC
  • mfrom: (1.1.4 upstream) (2.4.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100204213422-tdag8lcxpr7ahmg4
Tags: 1.0.0.rc16-3ubuntu1
* Merge from debian testing. (LP: #503136)  Remaining changes:
  - debian/dmraid-activate: Remove the special-casing of the root
    device which breaks in many situations and leaves the raw devices
    exposed. This was introduced in Debian to accommodate some broken
    configurations which wanted to access "partitions" on the raid
    raw devices. In Ubuntu, broken configurations has not been supported.
  - debian/dmraid.postinst: Comment out "udevadm trigger" call in postinst
    for now as it has severeconsequences when mountall is installed
    (clears /tmp).  If dmraid is installed, then presumably the important
    system devices are up and one canbe bothered with a reboot to take 
    the change into account. Let update-initramfs flag the system
    as needing a reboot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2004,2005  Heinz Mauelshagen, Red Hat GmbH.
3
 
 *                          All rights reserved.
4
 
 *
5
 
 * See file LICENSE at the top of this source tree for license information.
6
 
 */
7
 
 
8
 
/* Thx scsiinfo */
9
 
 
10
 
#ifndef _ATA_H_
11
 
#define _ATA_H_
12
 
 
13
 
struct ata_identify {
14
 
        unsigned short dummy[10];
15
 
#define ATA_SERIAL_LEN  20
16
 
        unsigned char serial[ATA_SERIAL_LEN];
17
 
        unsigned short dummy1[3];
18
 
        unsigned char fw_rev[8];
19
 
        unsigned char model[40];
20
 
        unsigned short dummy2[33];
21
 
        unsigned short major_rev_num;
22
 
        unsigned short minor_rev_num;
23
 
        unsigned short command_set_1;
24
 
        unsigned short command_set_2;
25
 
        unsigned short command_set_extension;
26
 
        unsigned short cfs_enable_1;
27
 
        unsigned short dummy3;
28
 
        unsigned short csf_default;
29
 
        unsigned short dummy4[168];
30
 
};
31
 
 
32
 
#ifndef ATA_IDENTIFY_DEVICE
33
 
#define ATA_IDENTIFY_DEVICE 0xEC
34
 
#endif
35
 
#ifndef HDIO_DRIVE_CMD
36
 
#define HDIO_DRIVE_CMD    0x031F
37
 
#endif
38
 
 
39
 
struct lib_context;
40
 
int get_ata_serial(struct lib_context *lc, int fd, struct dev_info *di);
41
 
 
42
 
#endif