ubifs_err
ubifs_err(c, "hash mismatch on node at LEB %d:%d", lnum, offs);
ubifs_err(c, "hash expected: %*ph%s", len, hash, cont);
ubifs_err(c, "hash calculated: %*ph%s", len, calc, cont);
ubifs_err(c, "Unable to find signature node");
ubifs_err(c, "Signature node is of wrong type");
ubifs_err(c, "invalid signature len %d", le32_to_cpu(signode->len));
ubifs_err(c, "Signature type %d is not supported\n",
ubifs_err(c, "Failed to verify signature");
ubifs_err(c, "authentication hash name needed with authentication");
ubifs_err(c, "Unknown hash algo %s specified",
ubifs_err(c, "Failed to request key: %ld",
ubifs_err(c, "key type must be logon");
ubifs_err(c, "Can not allocate %s: %d",
ubifs_err(c, "hash %s is bigger than maximum allowed hash size (%d > %d)",
ubifs_err(c, "Can not allocate %s: %d", hmac_name, err);
ubifs_err(c, "hmac %s is bigger than maximum allowed hmac size (%d > %d)",
ubifs_err(c, "cannot budget space, error %d", err);
ubifs_err(c, "commit failed, error %d", err);
ubifs_err(c, "dumping index node (iip=%d)", i->iip);
ubifs_err(c, "dumping parent index node");
ubifs_err(c, "failed, error %d", err);
ubifs_err(c, "invalid compression type %d", compr_type);
ubifs_err(c, "%s compression is not compiled in", compr->name);
ubifs_err(c, "cannot decompress %d bytes, compressor %s, error %d",
ubifs_err(c, "fscrypt_encrypt_block_inplace() failed: %d", err);
ubifs_err(c, "bad compr_size: %i", clen);
ubifs_err(c, "fscrypt_decrypt_block_inplace() failed: %d", err);
ubifs_err(c, "free space changed from %lld to %lld",
ubifs_err(c, "ui_size is %lld, synced_i_size is %lld, but inode is clean",
ubifs_err(c, "i_ino %llu, i_mode %#x, i_size %lld", inode->i_ino,
ubifs_err(c, "directory inode %llu has size %llu, but calculated size is %llu",
ubifs_err(c, "directory inode %llu has nlink %u, but calculated nlink is %u",
ubifs_err(c, "1st entry at %d:%d has key %s", zbr1->lnum,
ubifs_err(c, "but it should have key %s according to tnc",
ubifs_err(c, "2nd entry at %d:%d has key %s", zbr1->lnum,
ubifs_err(c, "but it should have key %s according to tnc",
ubifs_err(c, "2 xent/dent nodes with the same name");
ubifs_err(c, "bad order of colliding key %s",
ubifs_err(c, "failed, error %d", err);
ubifs_err(c, "incorrect clean_zn_cnt %ld, calculated %ld",
ubifs_err(c, "incorrect dirty_zn_cnt %ld, calculated %ld",
ubifs_err(c, "znode checking function returned error %d",
ubifs_err(c, "leaf checking function returned error %d, for leaf at LEB %d:%d",
ubifs_err(c, "error %d while walking the index", err);
ubifs_err(c, "index size check failed: calculated size is %lld, should be %lld",
ubifs_err(c, "too high inode number, max. is %lu",
ubifs_err(c, "inode %lu not found in index", (unsigned long)inum);
ubifs_err(c, "error %d while looking up inode %lu",
ubifs_err(c, "bad node %lu node length %d",
ubifs_err(c, "cannot read inode node at LEB %d:%d, error %d",
ubifs_err(c, "error %ld while adding inode %lu node",
ubifs_err(c, "bad leaf length %d (LEB %d:%d)",
ubifs_err(c, "cannot read leaf node at LEB %d:%d, error %d",
ubifs_err(c, "error %d while adding inode node", err);
ubifs_err(c, "unexpected node type %d at LEB %d:%d",
ubifs_err(c, "too high sequence number, max. is %llu",
ubifs_err(c, "error %d while processing data node and trying to find inode node %lu",
ubifs_err(c, "data node at LEB %d:%d is not within inode size %lld",
ubifs_err(c, "error %d while processing entry node and trying to find inode node %lu",
ubifs_err(c, "error %d while processing entry node and trying to find parent inode node %lu",
ubifs_err(c, "directory inode %lu has %d direntries which refer it, but should be 1",
ubifs_err(c, "root inode %lu has non-zero (%d) direntries which refer it",
ubifs_err(c, "directory inode %lu size is %lld, but calculated size is %lld",
ubifs_err(c, "directory inode %lu nlink is %d, but calculated nlink is %d",
ubifs_err(c, "inode %lu nlink is %d, but calculated nlink is %d",
ubifs_err(c, "inode %lu has xattr size %u, but calculated size is %lld",
ubifs_err(c, "inode %lu has %u xattrs, but calculated count is %lld",
ubifs_err(c, "inode %lu has xattr names' size %u, but calculated names' size is %lld",
ubifs_err(c, "inode %lu not found in index",
ubifs_err(c, "error %d while looking up inode %lu",
ubifs_err(c, "cannot read inode node at LEB %d:%d, error %d",
ubifs_err(c, "file-system check failed with error %d", err);
ubifs_err(c, "bad node type %d", sa->type);
ubifs_err(c, "bad node type %d", sb->type);
ubifs_err(c, "larger inum %lu goes before inum %lu",
ubifs_err(c, "larger block %u goes before %u", blka, blkb);
ubifs_err(c, "two data nodes for the same block");
ubifs_err(c, "bad node type %d", sa->type);
ubifs_err(c, "bad node type %d", sb->type);
ubifs_err(c, "non-inode node goes before inode node");
ubifs_err(c, "smaller inode node goes first");
ubifs_err(c, "larger inum %lu goes before inum %lu",
ubifs_err(c, "larger hash %u goes before %u",
ubifs_err(c, "UBIFS assert failed: %s, in %s:%u", expr, file, line);
ubifs_err(c, "cannot read lprops for LEB %d", lnum);
ubifs_err(c, "cannot allocate memory for dumping LEB %d", lnum);
ubifs_err(c, "scan error %d", (int)PTR_ERR(sleb));
ubifs_err(c, "commit lock is not locked!\n"); \
ubifs_err(c, "cannot create directory, error %d", err);
ubifs_err(c, "fscrypt_prepare_new_inode failed: %i", err);
ubifs_err(c, "out of inode numbers");
ubifs_err(c, "ubifs_add_orphan failed: %i", err);
ubifs_err(c, "fscrypt_set_context failed: %i", err);
ubifs_err(c, "dead directory entry '%pd', error %d",
ubifs_err(c, "cannot create regular file, error %d", err);
ubifs_err(c, "cannot create whiteout file, error %d", err);
ubifs_err(c, "cannot create temporary file, error %d", err);
ubifs_err(c, "cannot find next direntry, error %d", err);
ubifs_err(c, "cannot read page %lu of inode %llu, error %d",
ubifs_err(c, "bad data node (block %u, inode %llu)",
ubifs_err(c, "cannot write folio %lu of inode %llu, error %d",
ubifs_err(c, "bad data node (block %u, inode %llu)",
ubifs_err(c, "bad node type (%d but expected %d)",
ubifs_err(c, "expected node type %d", type);
ubifs_err(c, "bad node length %d, expected %d", rlen, len);
ubifs_err(c, "bad node at LEB %d:%d", lnum, offs);
ubifs_err(c, "writing %d bytes to LEB %d:%d failed, error %d",
ubifs_err(c, "changing %d bytes in LEB %d failed, error %d",
ubifs_err(c, "unmap LEB %d failed, error %d", lnum, err);
ubifs_err(c, "mapping LEB %d failed, error %d", lnum, err);
ubifs_err(c, "ubi_is_mapped failed for LEB %d, error %d",
ubifs_err(c, "bad magic %#08x, expected %#08x",
ubifs_err(c, "bad node type %d", type);
ubifs_err(c, "bad CRC: calculated %#08x, read %#08x",
ubifs_err(c, "bad node length %d", node_len);
ubifs_err(c, "bad node at LEB %d:%d", lnum, offs);
ubifs_err(c, "sequence number overflow %llu, end of life",
ubifs_err(c, "cannot sync write-buffer, error %d", err);
ubifs_err(c, "cannot write %d bytes to LEB %d:%d, error %d",
ubifs_err(c, "reading %d bytes from LEB %d:%d failed, error %d",
ubifs_err(c, "dead directory entry '%s', error %d",
ubifs_err(c, "bad data node (block %u, inode %llu)",
ubifs_err(c, "stuck in space allocation, nospc_retries %d",
ubifs_err(c, "cannot reserve %d bytes in jhead %d, error %d",
ubifs_err(c, "Cannot delete inode, it has too many xattrs!");
ubifs_err(c, "log is too full");
ubifs_err(c, "bad bud_bytes %lld, calculated %lld",
ubifs_err(c, "bad LEB category %d expected %d",
ubifs_err(c, "bad LPT list (category %d)", cat);
ubifs_err(c, "bad LPT heap (category %d)", cat);
ubifs_err(c, "indexing node in data LEB %d:%d",
ubifs_err(c, "bad calculated accounting for LEB %d: free %d, dirty %d",
ubifs_err(c, "indexing node without indexing flag");
ubifs_err(c, "data node with indexing flag");
ubifs_err(c, "bad accounting of LEB %d: free %d, dirty %d flags %#x, should be free %d, dirty %d",
ubifs_err(c, "bad overall accounting");
ubifs_err(c, "calculated: empty_lebs %d, idx_lebs %d, total_free %lld, total_dirty %lld, total_used %lld",
ubifs_err(c, "read from lprops: empty_lebs %d, idx_lebs %d, total_free %lld, total_dirty %lld, total_used %lld",
ubifs_err(c, "bad dead/dark space accounting");
ubifs_err(c, "calculated: total_dead %lld, total_dark %lld",
ubifs_err(c, "read from lprops: total_dead %lld, total_dark %lld",
ubifs_err(c, "cannot change properties of LEB %d, error %d",
ubifs_err(c, "cannot update properties of LEB %d, error %d",
ubifs_err(c, "cannot read properties of LEB %d, error %d",
ubifs_err(c, "non-empty LEB %d on empty list (free %d dirty %d flags %d)",
ubifs_err(c, "taken LEB %d on empty list (free %d dirty %d flags %d)",
ubifs_err(c, "non-freeable LEB %d on freeable list (free %d dirty %d flags %d)",
ubifs_err(c, "taken LEB %d on freeable list (free %d dirty %d flags %d)",
ubifs_err(c, "freeable list count %d expected %d", i,
ubifs_err(c, "idx_gc list count %d expected %d", i,
ubifs_err(c, "non-freeable LEB %d on frdi_idx list (free %d dirty %d flags %d)",
ubifs_err(c, "taken LEB %d on frdi_idx list (free %d dirty %d flags %d)",
ubifs_err(c, "non-index LEB %d on frdi_idx list (free %d dirty %d flags %d)",
ubifs_err(c, "null ptr in LPT heap cat %d", cat);
ubifs_err(c, "bad ptr in LPT heap cat %d", cat);
ubifs_err(c, "taken LEB in LPT heap cat %d", cat);
ubifs_err(c, "lprops %zx lp %zx lprops->lnum %d lp->lnum %d",
ubifs_err(c, "failed cat %d hpos %d err %d", cat, i, err);
ubifs_err(c, "error %d reading nnode at %d:%d", err, lnum, offs);
ubifs_err(c, "error %d reading pnode at %d:%d", err, lnum, offs);
ubifs_err(c, "calc num: %d", calc_pnode_num_from_parent(c, parent, iip));
ubifs_err(c, "too few LPT LEBs");
ubifs_err(c, "LPT ltab too big");
ubifs_err(c, "Failed to authenticate LPT");
ubifs_err(c, "LPT ltab too big");
ubifs_err(c, "pnode num %d expected %d parent num %d iip %d",
ubifs_err(c, "bad LEB number %d expected %d",
ubifs_err(c, "LEB %d taken but not uncat %d",
ubifs_err(c, "LEB %d index but cat %d",
ubifs_err(c, "LEB %d not index but cat %d",
ubifs_err(c, "LEB %d cat %d not found in cat heap/list",
ubifs_err(c, "LEB %d cat %d free %d dirty %d",
ubifs_err(c, "LEB %d cat %d free %d dirty %d",
ubifs_err(c, "nnode num %d expected %d parent num %d iip %d",
ubifs_err(c, "invalid crc in LPT node: crc %hx calc %hx",
ubifs_err(c, "invalid type (%d) in LPT node type %d",
ubifs_err(c, "cannot allocate memory for ltab checking");
ubifs_err(c, "invalid empty space in LEB %d at %d",
ubifs_err(c, "invalid free space in LEB %d (free %d, expected %d)",
ubifs_err(c, "invalid dirty space in LEB %d (dirty %d, expected %d)",
ubifs_err(c, "failed at LEB %d", lnum);
ubifs_err(c, "LPT space error: free %lld lpt_sz %lld",
ubifs_err(c, "dirty pnodes %d exceed max %d",
ubifs_err(c, "dirty nnodes %d exceed max %d",
ubifs_err(c, "LPT wrote %lld but space used was %lld",
ubifs_err(c, "LPT wrote %lld but lpt_sz is %lld",
ubifs_err(c, "LPT layout size %lld but wrote %lld",
ubifs_err(c, "LPT new nhead offs: expected %d was %d",
ubifs_err(c, "LPT chk_lpt_sz %lld + waste %lld exceeds %lld",
ubifs_err(c, "cannot allocate memory to dump LPT");
ubifs_err(c, "LPT node type %d not recognized", node_type);
ubifs_err(c, "LPT out of space at LEB %d:%d needing %d, done_ltab %d, done_lsave %d",
ubifs_err(c, "LPT out of space mismatch at LEB %d:%d needing %d, done_ltab %d, done_lsave %d",
ubifs_err(c, "Failed to verify master node hash");
ubifs_err(c, "Failed to verify master node HMAC");
ubifs_err(c, "unexpected node type %d master LEB %d:%d",
ubifs_err(c, "bad master node at offset %d error %d", c->mst_offs, err);
ubifs_err(c, "bad leb_cnt on master node");
ubifs_err(c, "missing orphan ino %lu", (unsigned long)inum);
ubifs_err(c, "out of space in orphan area");
ubifs_err(c, "out of space in orphan area");
ubifs_err(c, "invalid node type %d in orphan area at %d:%d",
ubifs_err(c, "out of order commit number %llu in orphan node at %d:%d",
ubifs_err(c, "ino %lu orphaned twice", (unsigned long)inum);
ubifs_err(c, "found orphan node ino %lu, type %d",
ubifs_err(c, "node read failed, error %d", err);
ubifs_err(c, "missing orphan, ino %lu",
ubifs_err(c, "cannot allocate memory to check orphans");
ubifs_err(c, "out of memory");
ubifs_err(c, "cannot scan TNC, error %d", err);
ubifs_err(c, "%lu missing orphan(s)", ci.missing);
ubifs_err(c, "unexpected empty space at %d:%d",
ubifs_err(c, "could not find an empty LEB");
ubifs_err(c, "GC failed, error %d", err);
ubifs_err(c, "failed to recover master node");
ubifs_err(c, "dumping first master node");
ubifs_err(c, "dumping second master node");
ubifs_err(c, "unexpected return value %d", ret);
ubifs_err(c, "corrupt empty space LEB %d:%d, corruption starts at %d",
ubifs_err(c, "corruption %d", ret);
ubifs_err(c, "LEB %d scanning failed", lnum);
ubifs_err(c, "Not a valid node");
ubifs_err(c, "Not a CS node, type is %d", cs_node->ch.node_type);
ubifs_err(c, "CS node cmt_no %llu != current cmt_no %llu",
ubifs_err(c, "failed to get CS sqnum");
ubifs_err(c, "unrecoverable log corruption in LEB %d",
ubifs_err(c, "first log node at LEB %d:%d is not CS node",
ubifs_err(c, "first CS node at LEB %d:%d has wrong commit number %llu expected %llu",
ubifs_err(c, "first node is not at zero offset");
ubifs_err(c, "file system's life ended");
ubifs_err(c, "bad sqnum %llu, commit sqnum %llu",
ubifs_err(c, "unexpected node in log");
ubifs_err(c, "unexpected node in log");
ubifs_err(c, "log error detected while replaying the log at LEB %d:%d",
ubifs_err(c, "bad index head LEB %d:%d", c->ihead_lnum,
ubifs_err(c, "no UBIFS nodes found at the log head LEB %d:%d, possibly corrupted",
ubifs_err(c, "bad %s node", key_type == UBIFS_DENT_KEY ?
ubifs_err(c, "bad key type %d", key_type);
ubifs_err(c, "file system's life ended");
ubifs_err(c, "bad truncation node");
ubifs_err(c, "unexpected node type %d in bud LEB %d:%d",
ubifs_err(c, "bad node is at LEB %d:%d", lnum, snod->offs);
ubifs_err(c, "bud at LEB %d:%d was already referred", lnum, offs);
ubifs_err(c, "min. I/O unit mismatch: %d in superblock, %d real",
ubifs_err(c, "LEB size mismatch: %d in superblock, %d real",
ubifs_err(c, "bad LEB count: %d in superblock, %d on UBI volume, %d minimum required",
ubifs_err(c, "max. LEB count %d less than LEB count %d",
ubifs_err(c, "too few main LEBs count %d, must be at least %d",
ubifs_err(c, "too small journal (%lld bytes), must be at least %lld bytes",
ubifs_err(c, "too large journal size (%lld bytes), only %lld bytes available in the main area",
ubifs_err(c, "bad superblock, error %d", err);
ubifs_err(c, "authenticated FS forced, but found FS without authentication");
ubifs_err(c, "authenticated FS found, but no key given");
ubifs_err(c, "superblock uses unknown hash algo %d",
ubifs_err(c, "This filesystem uses %s for hashing,"
ubifs_err(c, "provided key does not fit");
ubifs_err(c, "Failed to authenticate superblock: %d", err);
ubifs_err(c, "on-flash format version is w%d/r%d, but software only supports up to version w%d/r%d",
ubifs_err(c, "on-flash format version %d is not supported",
ubifs_err(c, "unsupported key format");
ubifs_err(c, "Unknown feature flags found: %#x",
ubifs_err(c, "file system contains encrypted files but UBIFS"
ubifs_err(c, "on-flash format version 5 is needed for encryption");
ubifs_err(c, "bad padding length %d - %d",
ubifs_err(c, "cannot read %d bytes from LEB %d:%d, error %d",
ubifs_err(c, "corruption at LEB %d:%d", lnum, offs);
ubifs_err(c, "first %d bytes from LEB %d:%d", len, lnum, offs);
ubifs_err(c, "garbage");
ubifs_err(c, "bad node");
ubifs_err(c, "unknown");
ubifs_err(c, "empty space starts at non-aligned offset %d",
ubifs_err(c, "corrupt empty space at LEB %d:%d",
ubifs_err(c, "LEB %d scanning failed", lnum);
ubifs_err(c, "LEB %d scanning failed, error %d", lnum, err);
ubifs_err(c, "bad pad node at LEB %d:%d",
ubifs_err(c, "insufficient free space to mount in R/W mode");
ubifs_err(c, "can't format empty UBI volume: read-only %s",
ubifs_err(c, "cannot mount read-write - read-only media");
ubifs_err(c, "auth_key_name, but UBIFS is built without"
ubifs_err(c, "'compressor \"%s\" is not compiled in",
ubifs_err(c, "cannot spawn \"%s\", error %d",
ubifs_err(c, "the file-system is not R/W-compatible");
ubifs_err(c, "cannot spawn \"%s\", error %d",
ubifs_err(c, "failed to write master node, error %d",
ubifs_err(c, "inode %llu validation failed, error %d", inode->i_ino, err);
ubifs_err(c, "failed to read inode %llu, error %d", inode->i_ino, err);
ubifs_err(c, "can't write inode %llu, error %d",
ubifs_err(c, "can't delete inode %llu, error %d",
ubifs_err(c, "too small LEB size %d, at least %d needed",
ubifs_err(c, "too small log %d LEBs, required min. %d LEBs",
ubifs_err(c, "inode is too large (%lld)",
ubifs_err(c, "no LEB for GC");
ubifs_err(c, "unknown compression type %d", ui->compr_type);
ubifs_err(c, "orphan list not empty at unmount");
ubifs_err(c, "cannot create sysfs entry for ubifs%d_%d, error %d\n",
ubifs_err(c, "bad node type (%d but expected %d)",
ubifs_err(c, "expected node type %d", UBIFS_DATA_NODE);
ubifs_err(c, "bad node length %d, expected %d", len, zbr->len);
ubifs_err(c, "bad key in node at LEB %d:%d",
ubifs_err(c, "bad node at LEB %d:%d", zbr->lnum, zbr->offs);
ubifs_err(c, "buffer too small %d vs %d", bu->buf_len, len);
ubifs_err(c, "failed to read from LEB %d:%d, error %d",
ubifs_err(c, "inode %llu has size %lld, but there are data at offset %lld",
ubifs_err(c, "cannot read node type %d from LEB %d:%d, error %d",
ubifs_err(c, "old idx added twice!");
ubifs_err(c, "inconsistent ihead");
ubifs_err(c, "out of space");
ubifs_err(c, "bad ref in znode");
ubifs_err(c, "bad ref in znode");
ubifs_err(c, "inconsistent znode posn");
ubifs_err(c, "current fanout %d, branch count %d",
ubifs_err(c, "max levels %d, znode level %d",
ubifs_err(c, "bad branch %d", i);
ubifs_err(c, "bad key type at slot %d: %d",
ubifs_err(c, "bad target node (type %d) length (%d)",
ubifs_err(c, "have to be %d", c->ranges[type].len);
ubifs_err(c, "bad target node (type %d) length (%d)",
ubifs_err(c, "have to be in range of %d-%d",
ubifs_err(c, "bad key order (keys %d and %d)", i, i + 1);
ubifs_err(c, "keys %d and %d are not hashed but equivalent",
ubifs_err(c, "bad indexing node at LEB %d:%d", lnum, offs);
ubifs_err(c, "bad key in node at LEB %d:%d",
void ubifs_err(const struct ubifs_info *c, const char *fmt, ...);
ubifs_err(c, fmt, ##__VA_ARGS__); \
ubifs_err(c, "dead extended attribute entry, error %d",
ubifs_err(c, "corrupt extended attribute entry");
ubifs_err(c, "cannot find next direntry, error %d", err);
ubifs_err(c, "dead directory entry '%s', error %d",
ubifs_err(c, "cannot remove xattr, error %d", err);
ubifs_err(c, "cannot find next direntry, error %d", err);
ubifs_err(c, "cannot initialize security for inode %llu, error %d",
ubifs_err(c, "inode %llu already has too many xattrs (%d), cannot create more",
ubifs_err(c, "cannot add one more xattr name to inode %llu, total names length would become %d, max. is %d",