Lines Matching defs:level

241  * forward to point to where the next field (the dump level) begins.
281 * Get the dump level from the buffer passed.
283 * Returns the dump level found. The buffer pointer is moved
372 * Print the dump level into the dumpdates file.
375 put_ddlevel(FILE *fp, int level)
380 (void) fprintf(fp, IS_LBR_BKTYPE(level) ? "%c" : "%d", level);
633 * Put the record specified by path, level and backup date to the file.
641 putdumptime(char *path, int level, time_t ddate)
653 if (IS_LBR_BKTYPE(level)) {
654 NDMP_LOG(LOG_DEBUG, "Lbr: [%s][%c][%u]", path, level, ddate);
656 NDMP_LOG(LOG_DEBUG, "[%s][%d][%u]", path, level, ddate);
699 if (ddp->dd_level != level)
725 tmpdd.dd_level = level;
740 * Append the record specified by path, level and backup date to the file.
743 append_dumptime(char *fname, char *path, int level, time_t ddate)
752 if (IS_LBR_BKTYPE(level & 0xff)) {
755 fname, path, level, ddate);
758 fname, path, level, ddate);
793 tmpdd.dd_level = level;
810 find_date(dumpdates_t *ddp, char *path, int level, time_t t)
813 if (ddp->dd_level == level && ddp->dd_ddate > t &&
822 * Get the dumpdate of the last level backup done on the path.
823 * The last level normally is (level - 1) in case of NetBackup
824 * but some DMAs allow that previous level could be anything
825 * between 0 and the current level.
832 ndmpd_get_dumptime(char *path, int *level, time_t *ddate)
842 if (!path || !level || !ddate)
845 NDMP_LOG(LOG_DEBUG, "[%s] level %d",
846 path, *level);
848 if (*level == 0) {
859 *level = 0;
865 for (i = *level - 1; i >= 0; i--) {
868 *level = i;
875 *level = 0;
900 * Empty dumpdates file means level 0 for all paths.
903 if (!IS_LBR_BKTYPE(*level & 0xff))
904 *level = 0;
910 * If it's not level backup, then find the exact record
913 if (IS_LBR_BKTYPE(*level & 0xff)) {
914 save = find_date(ddp, path, *level, *ddate);
926 for (i = *level - 1; i >= 0; i--) {
929 *level = save->dd_level;
936 *level = 0;
948 * Put the date and the level of the back up for the
950 * for the same path and the same level, the date is updated.
958 ndmpd_put_dumptime(char *path, int level, time_t ddate)
965 NDMP_LOG(LOG_DEBUG, "[%s][%d][%u]", path, level,
975 rv = zfs_prop_set(zhp, zfs_dumpdate_props[level], tbuf);
984 rv = putdumptime(path, level, ddate);
995 ndmpd_append_dumptime(char *fname, char *path, int level, time_t ddate)
1003 path, level, ddate);
1012 rv = zfs_prop_set(zhp, zfs_dumpdate_props[level], tbuf);
1021 rv = append_dumptime(fname, path, level, ddate);