Lines Matching defs:unit
48 * create a unit structure and update the on-disk format, called
61 * space. Once the new allocations are made, a unit structure is created
63 * on the unit structure to commit the transaction. If updating the
64 * watermarks fails, the unit structure is in an intermediate state and
77 * 5. Create the unit structure from the extent list
415 * mp - the unit structure to set the geometry for
529 md_sp_t *msp; /* unit structure */
560 /* get the unit structure */
1778 * watermark, which is not included in the unit structures.
1789 md_sp_t *msp; /* unit structure of the sp's */
1801 /* get the unit structure */
1811 * contained in the extents in the unit structure.
1833 * watermark, which is not included in the unit structures.
1964 * INPUT: msp - the unit structure to display
2076 * INPUT: sp - the set name for the unit being displayed
2077 * msp - the unit structure to display
2257 * INPUT: sp - the set name for the unit being displayed
2282 minor_t unit;
2316 /* get the unit structure */
2341 /* get the unit structure for the subdevice */
2346 unit = MD_MIN2UNIT(MD_SID(mdp));
2350 !BT_TEST(sp_parent_printed[setno], unit)) {
2359 BT_SET(sp_parent_printed[setno], unit);
2398 * msp - a pointer to the XDR unit structure
2548 * msp - the unit structure for the soft partition to clear
2551 * PURPOSE: steps through the extents for a soft partition unit and
3433 * INPUT: mp - the unit structure to fill
3437 * PURPOSE: fills in the unit structure extent list with the extents
3439 * EXTFLG_UPDATE flag are changed in the unit structure,
3440 * and the index into the unit structure is the sequence
3442 * been updated the virtual offsets in the unit structure
3457 /* go through the allocation list and fill in our unit structure */
3478 * INPUT: np - the name of the device to create a unit structure for
3480 * extlist - the extent list to populate the new unit with
3483 * status - the initial status of the unit structure
3485 * RETURNS: mp_unit_t * - the new unit structure.
3486 * PURPOSE: allocates and fills in a new soft partition unit
3509 /* fill in fields in common unit structure */
3544 * old_un - the original unit structure that is being updated
3545 * extlist - the extent list to populate the new unit with
3550 * RETURNS: mp_unit_t * - the updated unit structure
3551 * PURPOSE: allocates and fills in a new soft partition unit structure to
3553 * old unit structure is first copied in, and then the updated
3554 * extents are changed in the new unit structure. This is
3555 * typically used when the size of an existing unit is changed.
3574 /* allocate new unit structure and copy in old unit */
3606 * RETURNS: md_sp_t * - the XDR unit structure for the soft partition
3607 * PURPOSE: interface to the rest of libmeta for fetching a unit structure
3626 * RETURNS: md_sp_t * - the XDR unit structure for the soft partition,
3628 * PURPOSE: common routine for fetching a soft partition unit structure
3653 /* get miscname and unit */
3686 * block in the unit structure is 64 bits but the name pointer
3746 char *devname = argv[0]; /* unit name */
3995 * INPUT: msp - the soft partition unit to free
3999 * soft partition unit
4033 * msp - the unit structure to check
4207 /* get underlying unit & check capabilities */
4225 * msp - the unit structure to create
4237 * oblist passed in. The unit structure is then committed and
4415 meta_sp_debug("meta_create_sp: printing unit structure\n");
4526 * msp - the unit structure to reset
4533 * updated, the unit structure is deleted from the metadb.
4579 * ignore any errors writing the watermarks and delete the unit
4717 /* get the unit structure */
4813 /* get the unit structure */
4854 * PURPOSE: grows a soft partition by reading in the existing unit
4857 * and then writing out the new unit structure in the Okay state.
4985 /* allocate new unit structure and copy in old unit */
5005 meta_sp_debug("meta_sp_attach: updated unit structure:\n");
5465 * the unit structure for each one and validate the fields within.
5506 /* get the unit structure */
5510 /* verify generic unit structure parameters */
5596 * get both the unit structures for the soft partitions built
5619 /* get unit structure list */
5644 meta_sp_debug("meta_sp_validate_wm_and_unit: unit list:\n");
5736 * unitext - extent node from unit structure
5752 "%s: unit structure and extent header offsets differ.\n"),
5759 "%s: unit structure and extent header lengths differ.\n"),
5766 "%s: unit structure and extent header sequence numbers "
5773 "%s: unit structure and extent header types differ.\n"),
5785 "%s: unit structure and extent header set values "
5794 "%s: unit structure and extent header set names "
5808 "%s: unit structure and extent header name values "
5817 "%s: unit structure and extent header names "
5898 * then build a unit structure for each soft partition.
5975 /* allocate array of unit structure pointers */
5979 * build unit structures from list of ext_nodes.
6076 /* create the unit structure */
6086 "printing newly created unit structure");
6090 /* place in unit structure array */
6176 (void) memcpy(&send_params.unit, un_array[i],
6405 * Save the XDR unit structure for one of the soft partitions;
6745 * Now get the data from the unit structure. The compnamep stuff
6747 * from the unit structure.