File: oid.c

package info (click to toggle)
reiser4progs 1.0.9-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,608 kB
  • ctags: 3,844
  • sloc: ansic: 33,541; sh: 10,679; makefile: 1,010
file content (22 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Copyright (C) 2001-2005 by Hans Reiser, licensing governed by
   reiser4progs/COPYING.
   
   oid.c -- oid allocator repair code. */

#ifndef ENABLE_MINIMAL
#include <reiser4/libreiser4.h>

void repair_oid_print(reiser4_oid_t *oid, aal_stream_t *stream) {
	aal_assert("umka-1562", oid != NULL);

	reiser4call(oid, print, stream, 0);
}

/* Returns lost+found object id from specified oid allocator */
oid_t repair_oid_lost_objectid(reiser4_oid_t *oid) {
	aal_assert("vpf-1552", oid != NULL);

	return reiser4call(oid, lost_objectid);
}

#endif