~reprepro-alioth/reprepro/main

846 by brlink
some code to check for enough free space when updating (yet needs options to configure it)
1
#ifndef REPREPRO_FREESPACE_H
2
#define REPREPRO_FREESPACE_H
3
935 by brlink
start of some refactoring
4
#ifndef REPREPRO_DATABASE_H
5
#include "database.h"
6
#endif
7
846 by brlink
some code to check for enough free space when updating (yet needs options to configure it)
8
struct devices;
883 by brlink
add --spacecheck, --safetymargin, --dbsafetymargin
9
enum spacecheckmode { scm_NONE, /* scm_ASSUMESINGLEFS, */ scm_FULL };
846 by brlink
some code to check for enough free space when updating (yet needs options to configure it)
10
1572 by brlink
make use of the dir variables to simplify the code a bit
11
retvalue space_prepare(/*@out@*/struct devices **,enum spacecheckmode,off_t reservedfordb,off_t reservedforothers);
846 by brlink
some code to check for enough free space when updating (yet needs options to configure it)
12
1078 by brlink
allow more checksums: part 2 (support for abstract checksums in most of the code)
13
struct checksums;
14
retvalue space_needed(/*@null@*/struct devices *, const char *filename, const struct checksums *);
846 by brlink
some code to check for enough free space when updating (yet needs options to configure it)
15
16
retvalue space_check(/*@null@*/struct devices *);
17
18
void space_free(/*@only@*//*@null@*/struct devices *);
19
20
#endif