1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
/*
* Copyright (c) 2010 Benjamin Marzinski, Redhat
*/
#ifndef WWIDS_H_INCLUDED
#define WWIDS_H_INCLUDED
#define WWIDS_FILE_HEADER \
"# Multipath wwids, Version : 1.0\n" \
"# NOTE: This file is automatically maintained by multipath and multipathd.\n" \
"# You should not need to edit this file in normal circumstances.\n" \
"#\n" \
"# Valid WWIDs:\n"
int should_multipath(struct path *pp, vector pathvec, vector mpvec);
int remember_wwid(char *wwid);
int check_wwids_file(char *wwid, int write_wwid);
int remove_wwid(char *wwid);
int replace_wwids(vector mp);
enum {
WWID_IS_NOT_FAILED = 0,
WWID_IS_FAILED,
WWID_FAILED_UNCHANGED,
WWID_FAILED_CHANGED,
WWID_FAILED_ERROR = -1,
};
int is_failed_wwid(const char *wwid);
int mark_failed_wwid(const char *wwid);
int unmark_failed_wwid(const char *wwid);
#endif /* WWIDS_H_INCLUDED */
|