/** * vxfs_read_olt - read olt * @sbp: superblock of the filesystem * @bsize: blocksize of the filesystem * * Description: * vxfs_read_olt reads the olt of the filesystem described by @sbp * into main memory and does some basic setup. * * Returns: * Zero on success, else a negative error code.
*/ int
vxfs_read_olt(struct super_block *sbp, u_long bsize)
{ struct vxfs_sb_info *infp = VXFS_SBI(sbp); struct buffer_head *bp; struct vxfs_olt *op; char *oaddr, *eaddr;
bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); if (!bp || !bp->b_data) goto fail;
op = (struct vxfs_olt *)bp->b_data; if (fs32_to_cpu(infp, op->olt_magic) != VXFS_OLT_MAGIC) {
printk(KERN_NOTICE "vxfs: ivalid olt magic number\n"); goto fail;
}
/* * It is in theory possible that vsi_oltsize is > 1. * I've not seen any such filesystem yet and I'm lazy.. --hch
*/ if (infp->vsi_oltsize > 1) {
printk(KERN_NOTICE "vxfs: oltsize > 1 detected.\n");
printk(KERN_NOTICE "vxfs: please notify hch@infradead.org\n"); goto fail;
}
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.