~ubuntu-branches/ubuntu/intrepid/multipath-tools/intrepid-proposed

« back to all changes in this revision

Viewing changes to libmultipath/discovery.h

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2007-12-13 03:03:31 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20071213030331-bp0r75kwexi0o33m
Tags: 0.4.8-5ubuntu1
* Merge from debian unstable, remaining changes:
  - DebianMaintainerField.
  - Suggest sg3-utils, Conflict with sg-utils.
  - Replace multipath-tools-boot init script with udev rules in
    kpartx.rules.
  - Add /sbin/hsg80_start.
  - Move udev rules to priority 95, and drop call to dmsetup_env.
  - Add devices as they appear
  - Fix preinst script to modprobe dm-multipath. This will make sure
    that multipathd will be able to start.
  - Fix init script not to die on stop if multipathd is not running.
  - Add prerm script to not fail when upgrading from a broken version of
    multipathd.
  - Set umask in multipathd.
  - Handle udev rules priority change in preinst.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#define INQUIRY_CMDLEN  6
6
6
#define INQUIRY_CMD     0x12
7
7
#define SENSE_BUFF_LEN  32
8
 
#define DEF_TIMEOUT     60000
9
8
#define RECOVERED_ERROR 0x01
10
9
#define MX_ALLOC_LEN    255
11
10
#define TUR_CMD_LEN     6
14
13
#define BLKGETSIZE      _IO(0x12,96)
15
14
#endif
16
15
 
 
16
#ifndef DEF_TIMEOUT
 
17
#define DEF_TIMEOUT     300000
 
18
#endif
 
19
 
17
20
/*
18
21
 * exerpt from sg_err.h
19
22
 */
21
24
#define SCSI_COMMAND_TERMINATED 0x22
22
25
#define SG_ERR_DRIVER_SENSE     0x08
23
26
 
24
 
int sysfs_get_vendor (char * sysfs_path, char * dev, char * buff, int len);
25
 
int sysfs_get_model (char * sysfs_path, char * dev, char * buff, int len);
26
 
int sysfs_get_rev (char * sysfs_path, char * dev, char * buff, int len);
27
 
int sysfs_get_dev (char * sysfs_path, char * dev, char * buff, int len);
28
 
 
29
 
int sysfs_get_size (char * sysfs_path, char * dev, unsigned long long *);
 
27
int sysfs_get_dev (struct sysfs_device * dev, char * buff, size_t len);
30
28
int path_discovery (vector pathvec, struct config * conf, int flag);
31
29
 
32
30
void basename (char *, char *);
33
 
int get_serial (char * buff, int fd);
34
31
int do_tur (char *);
35
32
int devt2devname (char *, char *);
36
33
int pathinfo (struct path *, vector hwtable, int mask);