| LFS_MARKV(2) | System Calls Manual | LFS_MARKV(2) | 
int
lfs_markv(fsid_t *fsidp, BLOCK_INFO *blkiov, int blkcnt);
The fsidp argument contains the id of the filesystem to which the inodes and blocks belong. The bi_bp field contains bi_size bytes of data to be written into the appropriate block. If bi_lbn is specified as LFS_UNUSED_LBN, the inode itself will be rewritten.
The blkiov argument is an array of BLOCK_INFO structures (see below). The blkcnt argument determines the size of the blkiov array.
typedef struct block_info { 
    ino_t       bi_inode;     /* inode # */ 
    ufs_daddr_t bi_lbn;       /* logical block w/in file */ 
    ufs_daddr_t bi_daddr;     /* disk address of block */ 
    time_t      bi_segcreate; /* origin segment create time */ 
    int         bi_version;   /* file version number */ 
    void       *bi_bp;        /* data buffer */ 
    int         bi_size;      /* size of the block (if fragment) */ 
} BLOCK_INFO;
| May 23, 2000 | NetBSD 6.1 |