Heinz Mauelshagen | 3bd9400 | 2023-01-25 21:00:44 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2004 Red Hat, Inc. All rights reserved. |
| 4 | * |
| 5 | * This file is released under the GPL. |
| 6 | * |
| 7 | * Multipath. |
| 8 | */ |
| 9 | |
| 10 | #ifndef DM_MPATH_H |
| 11 | #define DM_MPATH_H |
| 12 | |
| 13 | struct dm_dev; |
| 14 | |
Josef "Jeff" Sipek | c922d5f | 2006-12-08 02:36:33 -0800 | [diff] [blame] | 15 | struct dm_path { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | struct dm_dev *dev; /* Read-only */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | void *pscontext; /* For path-selector use */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | /* Callback for hwh_pg_init_fn to use when complete */ |
Heinz Mauelshagen | 86a3238 | 2023-01-25 21:14:58 +0100 | [diff] [blame] | 21 | void dm_pg_init_complete(struct dm_path *path, unsigned int err_flags); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | |
| 23 | #endif |