mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-03 08:22:00 +03:00
cleanup: a/an fixups
Some a/an fixups along with a couple more odds and ends. Hopefully this is useful like this as plain diff output or let me know if something else will work better.
This commit is contained in:
committed by
Zdenek Kabelac
parent
a23ef8e26f
commit
cfeeee9b3d
@ -272,7 +272,7 @@ class ObjectManager(AutomatedProperties):
|
||||
For a given lvm asset return the dbus object path registered for it.
|
||||
This method first looks up by uuid and then by lvm_id. You
|
||||
can search by just one by setting uuid == lvm_id (uuid or lvm_id).
|
||||
If the object is not found and path_create is a not None, the
|
||||
If the object is not found and path_create is not None, the
|
||||
path_create function will be called to create a new object path and
|
||||
register it with the object manager for the specified uuid & lvm_id.
|
||||
Note: If path create is not None, uuid and lvm_id cannot be equal
|
||||
@ -295,7 +295,7 @@ class ObjectManager(AutomatedProperties):
|
||||
if uuid == lvm_id:
|
||||
path = self._id_lookup(lvm_id)
|
||||
else:
|
||||
# We have an uuid and a lvm_id we can do sanity checks to ensure
|
||||
# We have a uuid and an lvm_id we can do sanity checks to ensure
|
||||
# that they are consistent
|
||||
|
||||
# If a PV is missing its device path is '[unknown]' or some
|
||||
|
@ -2763,7 +2763,7 @@ int device_ids_match_dev(struct cmd_context *cmd, struct device *dev)
|
||||
* a device, is allowed to read a device to evaluate filters that need to see
|
||||
* data from the dev.
|
||||
*
|
||||
* When a device id of a particular type is obtained for a dev, a id for that
|
||||
* When a device id of a particular type is obtained for a dev, an id for that
|
||||
* type is saved in dev->ids in case it needs to be checked again.
|
||||
*
|
||||
* When a device in dev-cache is matched to an entry in the devices file
|
||||
|
@ -884,7 +884,7 @@ int add_seg_to_segs_using_this_lv(struct logical_volume *lv,
|
||||
}
|
||||
}
|
||||
|
||||
log_very_verbose("Adding %s:" FMTu32 " as an user of %s.",
|
||||
log_very_verbose("Adding %s:" FMTu32 " as a user of %s.",
|
||||
seg->lv->name, seg->le, lv->name);
|
||||
|
||||
if (!(sl = dm_pool_zalloc(lv->vg->vgmem, sizeof(*sl)))) {
|
||||
|
@ -523,7 +523,7 @@ static void _check_lv_segment(struct logical_volume *lv, struct lv_segment *seg,
|
||||
|
||||
if (seg->external_lv &&
|
||||
!lv_is_external_origin(seg->external_lv))
|
||||
seg_error("external LV is not flagged as a external origin LV");
|
||||
seg_error("external LV is not flagged as an external origin LV");
|
||||
|
||||
if (seg->merge_lv) {
|
||||
if (!lv_is_thin_volume(seg->merge_lv))
|
||||
|
Reference in New Issue
Block a user