File: RaidFileWrite.txt

package info (click to toggle)
boxbackup 0.11~rc2-7squeeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 5,384 kB
  • ctags: 3,378
  • sloc: cpp: 40,561; sh: 17,410; perl: 3,398; xml: 3,098; makefile: 102
file content (36 lines) | stat: -rw-r--r-- 923 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
27
28
29
30
31
32
33
34
35
36
CLASS RaidFileWrite

Interface to writing raidfiles.

See IOStream interface.

Some other useful functions are available, see h and cpp files.


FUNCTION RaidFileWrite::RaidFileWrite()

The constructor takes the disc set number and filename of the file you're interested.


FUNCTION RaidFileWrite::Open()

Open() opens the file for writing, and takes an "allow overwrite" flag.


FUNCTION RaidFileWrite::Commit()

Commmit the file, and make it visible to RaidFileRead. If ConvertToRaidNow == true, it will be converted to raid file representation immediately.

Setting it to false is not a good idea. Later on, it will tell a daemon to convert it in the background, but for now it simply won't be converted.


FUNCTION RaidFileWrite::Discard()

Abort the creation/update. Equivalent to just deleting the object without calling Commit().


FUNCTION RaidFileWrite::Delete()

Delete a file -- don't need to Open() it first.