File: backup.h

package info (click to toggle)
reiser4progs 1.0.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,348 kB
  • ctags: 3,714
  • sloc: ansic: 33,468; sh: 8,489; makefile: 1,012
file content (26 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Copyright (C) 2001-2005 by Hans Reiser, licensing governed by
   reiser4progs/COPYING.
   
   backup.h -- backup and rollback fsck declarations. */

#ifndef BACKUP_H
#define BACKUP_H

#include <stdio.h>

#include <aal/libaal.h>
#include <reiser4/bitmap.h>

#define BACKUP_MAGIC "_RollBackFileForReiser4FSCK"

typedef struct backup {
	errno_t (*write) (aal_device_t *, void *, blk_t, count_t);
	reiser4_bitmap_t *bitmap;
	FILE *file;
} backup_t;

extern errno_t backup_init(FILE *file, aal_device_t *device, count_t len);
extern errno_t backup_rollback(FILE *file, aal_device_t *device);
extern void backup_fini();

#endif