/* * Internal header file for device mapper * * Copyright (C) 2001, 2002 Sistina Software * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. * * This file is released under the LGPL.
*/
/* * List of devices that a metadevice uses and should open/close.
*/ struct dm_dev_internal { struct list_head list;
refcount_t count; struct dm_dev *dm_dev;
};
int dm_setup_md_queue(struct mapped_device *md, struct dm_table *t);
/* * To check whether the target type is bio-based or not (request-based).
*/ #define dm_target_bio_based(t) ((t)->type->map != NULL)
/* * To check whether the target type is request-based or not (bio-based).
*/ #define dm_target_request_based(t) ((t)->type->clone_and_map_rq != NULL)
/* * To check whether the target type is a hybrid (capable of being * either request-based or bio-based).
*/ #define dm_target_hybrid(t) (dm_target_bio_based(t) && dm_target_request_based(t))
/* * Test if the device is scheduled for deferred remove.
*/ int dm_test_deferred_remove_flag(struct mapped_device *md);
/* * Try to remove devices marked for deferred removal.
*/ void dm_deferred_remove(void);
/* * The device-mapper can be driven through one of two interfaces; * ioctl or filesystem, depending which patch you have applied.
*/ int dm_interface_init(void); void dm_interface_exit(void);
/* * The kobject helper
*/ void dm_kobject_release(struct kobject *kobj);
/* * Targets for linear and striped mappings
*/ int linear_map(struct dm_target *ti, struct bio *bio); int dm_linear_init(void); void dm_linear_exit(void);
int stripe_map(struct dm_target *ti, struct bio *bio); int dm_stripe_init(void); void dm_stripe_exit(void);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.