Lines Matching defs:block

118  * rec_crcgen generates a crc checksum for a record block
119 * rec_crcchk checks the crc checksum for a record block
410 * Record block may be written by different nodes in a multi-owner diskset
414 * checksum for same record block causing the exclusive-or of all record block
415 * checksums and data block record sums to be non-zero after new master writes
416 * at least one record block.
624 * go through and find highest logical block
675 /* locator block sectors */
684 /* locator block device id information */
707 /* directory block/entry sectors */
722 * - When mddb_devid_free_get adds unused space from a disk block
767 mddb_did_free_t *did_freep1; /* next free block */
768 mddb_did_free_t *did_freep2 = 0; /* previous free block */
777 /* find free block for this devid */
781 * Look through free list of <block, offset, length> to
783 * exist since the entire devid block was placed into
785 * the non-free (in-use) portions of the devid block so
804 /* did_freep1 - pts to next free block */
813 * did_freep_before points to area in block before
819 * did_freep_after points to area in block after
879 * disk block, put the empty disk block on the did_ic_dbp linked list,
880 * and add the disk block space not used for devid to the free list.
882 * Return pointer to address (inside disk block) of free area for devid.
910 /* find disk block pointer that contains free area */
919 * If a disk block pointer can't be found - something
958 /* Add disk block to disk block linked list */
972 /* Add unused part of block to free list */
987 * be called to write both the locator block and device id area out
1060 * be called to write both the locator block and device id area out
1091 /* Add new free space in disk block to free list */
1240 return ((daddr_t)-1); /* no such block */
1247 return ((daddr_t)-1); /* no such block */
1260 daddr_t blk, /* block number for first block */
1298 * wrtblklst - takes an array of logical block numbers
1394 * writeblks - takes a logical block number/block count pair
1403 mddb_block_t blk, /* starting logical block number */
1462 mddb_block_t block, /* starting logical block number */
1478 err |= writeblks(s, buffer, block, cnt, li, master_only);
1485 * writelocall - write the locator block and device id information (if
1488 * Increments the locator block's commitcnt. Updates the device id area's
1530 /* write out device id area block */
1535 /* write out locator block */
1542 * in the mddb_set structure to show that the locator block has
1562 daddr_t blk, /* physical block number to read */
1588 * readblklst - takes an array of logical block numbers
1596 caddr_t buffer, /* buffer to be read (record block) */
1645 * readblks - takes a logical block number/block count pair
1654 mddb_block_t blk, /* logical block number to be read */
1777 * the master block revision number is MDDB_REV_MNMB; otherwise,
2344 * structure but its on disk layout has only 32 bit for block sizes
2710 * nodes will then re-read in the locator block or re-read in the
2872 * The device slice and block offset should match. If both have devids then
3917 computefreeblks(s); /* set up free block bits */
4365 /* Get rid of extra locator devid block info */
4521 * stores it in the locator block.
4523 * array in the locator block.
4526 * in the locator block.
4742 mddb_lb_t *lbp = NULL; /* pointer to locator block */
4774 * read in master blocks and locator block for all known locators.
4810 /* if invalid master block - try next replica */
4836 * Read in all the sectors for the locator block
4856 /* Verify the locator block */
4919 * block and verify device ID block information.
4923 /* Read in device ID block */
4983 /* Verify the Device ID block */
4997 * Check if device ID block is out of sync with the
4998 * Locator Block by checking if the locator block
4999 * commitcnt does not match the device id block
5008 * the locator block's commitcnt and the device
5009 * id block's commitcnt.
5029 * Reset valid bit in device id info block flags. This
5039 * Reset updated bit in device id info block flags.
5059 * Check if block has
5071 /* if block not found, read it in */
5127 /* Check validity of devid in block */
5154 * block is incorrect and we need to fix it up here
5193 * block has information about itself by checking the
5194 * device ID, minor_name and block
5196 * against the locator block information that has just
5199 * If not a valid devid, verify that this locator block
5201 * number, block number and driver name from this
5203 * block information that has just been read in from disk.
5208 * This locator block MUST have locator (replica)
5210 * slice part of minor number, and block number.
5242 * This locator block MUST have locator (replica)
5318 * Didn't find ourself in this locator block it means
5319 * the locator block is a stale transplant. Probably from
5349 * go through locator block and add any other
5605 /* unable to find disk block */
5647 * If rip not found, then mark error in master block
5788 * to the chosen locator block with respect to
5840 * to the chosen locator block with respect to
5931 * if present, in the locator block devid area.
5959 * add it to the locator block devid area.
6138 * If locator block has been changed by get_mbs_n_lbs,
6140 * by updated driver name - write out locator block.
6284 * grab driver name, minor, block and devid out of
6285 * strings like "driver:minor:block:devid"
6376 * grab driver name, minor, and block out of
6377 * strings like "driver:minor:block:devid driver:minor:block:devid ..."
6481 mddb_lb_t *lbp; /* pointer to locator block */
6483 mddb_db_t *dbp; /* pointer to directory block */
6484 mddb_did_blk_t *did_blkp; /* pointer to Device ID block */
6510 * init is already underway, block. Return success.
6671 /* lb starts on block 0 */
6672 /* locator names starts after locator block */
6690 /* the btodb that follows is converting the directory block size */
6691 /* Data tag part of mddb located after first block of mddb data */
6891 * If the block parse flag is set, do not send parse messages.
6988 /* Need disk block(s) to hold mddb_did_blk_t */
6993 * Alloc mddb_did_blk_t disk block and fill in header area.
7043 * Just count each devid as at least 1 block. This
7045 * into 1 disk block, but it's better to overestimate
7258 * returns 0 if name can be put into locator block
7259 * returns 1 if locator block prefixes are all used
7268 * routine checklocator which basically checked the locator block
7434 * add the ability to accept a locator block index
7510 * block on this replica is being deleted by setting the
7604 * update_valid_replica - updates the locator block namespace (prefix
7783 * update_locatorblock - for active entries in the locator block, check
7913 * dummy mb block.
8039 mddb_lb_t *lbp; /* pointer to locator block */
8137 * field of the locator block so that the locator name can
8273 mddb_lb_t *lbp; /* pointer to locator block */
8468 * field of the locator block so that the locator name can
8506 * since cfgloc2locator may attempt to alloc an unused block
8890 * allocate record block
8891 * and new directory block so to avoid sleeping
8950 * see if a directory block exists which will hold this entry
8975 * need to add directory block
9110 * the data base. Writing one block at a time to each instance
10339 * block before the search until the set is released.
10681 * mddb_getinvlb_devid - cycles through the locator block and determines
11218 * this node's locator block. Fix up the set's s_mbiarray
11219 * pointer (master block incore array pointer) to be
11220 * in sync with the newly read in locator block. If a
11313 * Walk through directory block and directory entry incore
11315 * For each opt record found, re-read in directory block.
11316 * The directoy block consists of a number of directory
11337 * Reread directory block from disk since
11396 * new directory block that was just read in above.
11482 * directory block to match the newly read in checksum.
11569 * flag causes the slave node to re-read in the locator block from disk.
11699 * block from disk.
11748 /* Push changed locator block out to disk */
11863 /* Check locator block */
11866 /* read in on-disk locator block */
11921 /* Is incore locator block same as ondisk? */
12020 /* Check locator block */
12023 /* read in on-disk locator block */
12033 /* Is incore locator block same as ondisk? */
12100 computefreeblks(s); /* set up free block bits */
12186 * that the locator block has been changed.
12924 * (1) locator block
12925 * (2) locator name block if necessary
12926 * (3) master block
12927 * (4) directory block