Lines Matching defs:error

75 static	char	err_str[] = "DB I/O error has occurred";
214 * Return 0 for success, error code otherwise.
308 int len, error;
367 dbp = db_get_db(fhpath, &fsid, &error, 0);
458 * or error code otherwise.
465 int error;
481 error = dbm_error(dbp->db);
484 if (error) {
528 /* see if there is a database error */
530 /* clear and report the database error */
569 * or error code for failure.
575 int error = 0;
588 error = dbm_error(dbp->db);
591 if (error) {
614 * mapping_update_interval seconds passed. Return 0 if success, error otherwise.
632 * mapping_update_interval seconds passed. Return 0 if success, error otherwise.
653 * contains the error code and return NULL.
707 * contains the error code and return NULL.
782 syslog(LOG_ERR, gettext("get_next_key: malloc error %s\n"),
902 * Return 0 if success, error otherwise.
987 * Return 0 if success, error code otherwise.
993 int nextsize, len, error;
1007 &error, "db_add_secondary primary");
1009 return (error);
1013 error = db_update_fhrec(dbp, fhkey, fh->fh_len, new_fhrecp,
1017 newlinkp = create_link_struct(dbp, dfh, name, new_fhrecp, &error);
1025 name, ((error >= 0) ? strerror(error) :
1027 return (error);
1044 new_fhrecp, &error);
1050 return (error);
1067 &error, "db_add_secondary next link");
1073 return (error);
1083 error = store_record(dbp, nextaddr, nextsize, nextlinkp,
1087 "db_add_secondary exits(%d): name '%s'\n", error, name);
1089 return (error);
1094 * Return 0 for success, error code otherwise.
1117 /* Return no error */
1141 * Return 0 for success, error code otherwise.
1148 int diff, error;
1151 prevlinkp = fetch_record(dbp, prevkey, prevsize, &prevlink, &error,
1153 /* if error there is no next record - ok */
1170 error = store_record(dbp, prevkey, prevsize, prevlinkp,
1172 return (error);
1180 * Return 0 for success, error code otherwise.
1197 /* not an error if no next link */
1233 * Return 0 for success, error code otherwise.
1239 int error;
1286 error = store_record(dbp,
1289 return (error);
1302 * Return 0 for success, error code otherwise.
1309 int error = 0;
1318 dbp = db_get_db(fhpath, &fh->fh_fsid, &error, O_CREAT);
1326 &fhrec, &error);
1335 error = EINVAL;
1341 error = db_delete_link(fhpath, dfh,
1344 flags, &fhrec, &error);
1350 error = db_add_secondary(dbp, dfh, name, fh, fhrecp);
1355 return (error);
1360 * Return the entry in *fhrecpp if found, or NULL with error set otherwise.
1397 * Return 0 and set the entry in *fhrecpp if found, return error otherwise.
1453 * as well. *errorp contains the returned error code.
1547 * containing the returned error if any from the delete_link ops.
1576 * Return 0 for success, error code otherwise.
1582 int error = 0;
1590 dbp = db_get_db(fhpath, &dfh->fh_fsid, &error, O_CREAT);
1593 (void) delete_link(dbp, dfh, name, NULL, NULL, &error,
1596 return (error);
1603 * Return 0 for success, error code otherwise.
1609 int error = 0;
1617 dbp = db_get_db(fhpath, &fh->fh_fsid, &error, O_CREAT);
1624 return (error);
1631 * Return 0 for success, error code otherwise.
1637 int error;
1648 dbp = db_get_db(fhpath, &from_dfh->fh_fsid, &error, O_CREAT);
1654 &error);
1660 error = db_delete_link(fhpath, from_dfh, from_name);
1661 if (error == 0) {
1662 error = db_add(fhpath, to_dfh, to_name, &fhrecp->fh,
1666 return (error);
1678 int error, len;
1690 dbp = db_get_db(fhpath, fsidp, &error, 0);
1711 (void *)&rec, &error, "db_prt_keys");
1752 int error;
1761 &cookie, &error, "links_timedout");
1766 pfe->fh.fh_len, NULL, &error,
1770 "links_timedout: fetch fhrec error %s\n"),
1771 strerror(error));
1812 int error, linkerr, linksize;
1837 NULL, &error, "dump_db");
1856 "prune_dbs: malloc failed, error %s\n"),
1893 &linksize, &error, "dump_db");
1894 while ((linksize > 0) && !(error || linkerr)) {
1898 &error, "dump_db");
1899 if (error || linkerr) {