gnunet_disk_lib.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743
  1. /*
  2. This file is part of GNUnet.
  3. (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009 Christian Grothoff (and other contributing authors)
  4. GNUnet is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published
  6. by the Free Software Foundation; either version 2, or (at your
  7. option) any later version.
  8. GNUnet is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GNUnet; see the file COPYING. If not, write to the
  14. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  15. Boston, MA 02111-1307, USA.
  16. */
  17. /**
  18. * @file include/gnunet_disk_lib.h
  19. * @brief disk IO apis
  20. */
  21. #ifndef GNUNET_DISK_LIB_H
  22. #define GNUNET_DISK_LIB_H
  23. /**
  24. * Opaque handle used to access files.
  25. */
  26. struct GNUNET_DISK_FileHandle;
  27. /**
  28. * Handle used to manage a pipe.
  29. */
  30. struct GNUNET_DISK_PipeHandle;
  31. enum GNUNET_FILE_Type
  32. {
  33. GNUNET_DISK_FILE, GNUNET_PIPE
  34. };
  35. /**
  36. * Handle used to access files (and pipes).
  37. */
  38. struct GNUNET_DISK_FileHandle
  39. {
  40. #if WINDOWS
  41. /**
  42. * File handle under W32.
  43. */
  44. HANDLE h;
  45. /**
  46. * Type
  47. */
  48. enum GNUNET_FILE_Type type;
  49. /**
  50. * Structure for overlapped reading (for pipes)
  51. */
  52. OVERLAPPED *oOverlapRead;
  53. /**
  54. * Structure for overlapped writing (for pipes)
  55. */
  56. OVERLAPPED *oOverlapWrite;
  57. #else
  58. /**
  59. * File handle on other OSes.
  60. */
  61. int fd;
  62. #endif /*
  63. */
  64. };
  65. /* we need size_t, and since it can be both unsigned int
  66. or unsigned long long, this IS platform dependent;
  67. but "stdlib.h" should be portable 'enough' to be
  68. unconditionally available... */
  69. #include <stdlib.h>
  70. #include "gnunet_configuration_lib.h"
  71. #include "gnunet_scheduler_lib.h"
  72. #ifdef __cplusplus
  73. extern "C"
  74. {
  75. #if 0 /* keep Emacsens' auto-indent happy */
  76. }
  77. #endif
  78. #endif
  79. /**
  80. * Specifies how a file should be opened.
  81. */
  82. enum GNUNET_DISK_OpenFlags
  83. {
  84. /**
  85. * Open the file for reading
  86. */
  87. GNUNET_DISK_OPEN_READ = 1,
  88. /**
  89. * Open the file for writing
  90. */
  91. GNUNET_DISK_OPEN_WRITE = 2,
  92. /**
  93. * Open the file for both reading and writing
  94. */
  95. GNUNET_DISK_OPEN_READWRITE = 3,
  96. /**
  97. * Fail if file already exists
  98. */
  99. GNUNET_DISK_OPEN_FAILIFEXISTS = 4,
  100. /**
  101. * Truncate file if it exists
  102. */
  103. GNUNET_DISK_OPEN_TRUNCATE = 8,
  104. /**
  105. * Create file if it doesn't exist
  106. */
  107. GNUNET_DISK_OPEN_CREATE = 16,
  108. /**
  109. * Append to the file
  110. */
  111. GNUNET_DISK_OPEN_APPEND = 32
  112. };
  113. /**
  114. * Specifies what type of memory map is desired.
  115. */
  116. enum GNUNET_DISK_MapType
  117. {
  118. /**
  119. * Read-only memory map.
  120. */
  121. GNUNET_DISK_MAP_TYPE_READ = 1,
  122. /**
  123. * Write-able memory map.
  124. */
  125. GNUNET_DISK_MAP_TYPE_WRITE = 2,
  126. /**
  127. * Read-write memory map.
  128. */
  129. GNUNET_DISK_MAP_TYPE_READWRITE = 3
  130. };
  131. /**
  132. * File access permissions, UNIX-style.
  133. */
  134. enum GNUNET_DISK_AccessPermissions
  135. {
  136. /**
  137. * Nobody is allowed to do anything to the file.
  138. */
  139. GNUNET_DISK_PERM_NONE = 0,
  140. /**
  141. * Owner can read.
  142. */
  143. GNUNET_DISK_PERM_USER_READ = 1,
  144. /**
  145. * Owner can write.
  146. */
  147. GNUNET_DISK_PERM_USER_WRITE = 2,
  148. /**
  149. * Owner can execute.
  150. */
  151. GNUNET_DISK_PERM_USER_EXEC = 4,
  152. /**
  153. * Group can read.
  154. */
  155. GNUNET_DISK_PERM_GROUP_READ = 8,
  156. /**
  157. * Group can write.
  158. */
  159. GNUNET_DISK_PERM_GROUP_WRITE = 16,
  160. /**
  161. * Group can execute.
  162. */
  163. GNUNET_DISK_PERM_GROUP_EXEC = 32,
  164. /**
  165. * Everybody can read.
  166. */
  167. GNUNET_DISK_PERM_OTHER_READ = 64,
  168. /**
  169. * Everybody can write.
  170. */
  171. GNUNET_DISK_PERM_OTHER_WRITE = 128,
  172. /**
  173. * Everybody can execute.
  174. */
  175. GNUNET_DISK_PERM_OTHER_EXEC = 256
  176. };
  177. /**
  178. * Constants for specifying how to seek.
  179. */
  180. enum GNUNET_DISK_Seek
  181. {
  182. /**
  183. * Seek an absolute position (from the start of the file).
  184. */
  185. GNUNET_DISK_SEEK_SET,
  186. /**
  187. * Seek a relative position (from the current offset).
  188. */
  189. GNUNET_DISK_SEEK_CUR,
  190. /**
  191. * Seek an absolute position from the end of the file.
  192. */
  193. GNUNET_DISK_SEEK_END
  194. };
  195. /**
  196. * Enumeration identifying the two ends of a pipe.
  197. */
  198. enum GNUNET_DISK_PipeEnd
  199. {
  200. /**
  201. * The reading-end of a pipe.
  202. */
  203. GNUNET_DISK_PIPE_END_READ = 0,
  204. /**
  205. * The writing-end of a pipe.
  206. */
  207. GNUNET_DISK_PIPE_END_WRITE = 1
  208. };
  209. /**
  210. * Get the number of blocks that are left on the partition that
  211. * contains the given file (for normal users).
  212. *
  213. * @param part a file on the partition to check
  214. * @return -1 on errors, otherwise the number of free blocks
  215. */
  216. long
  217. GNUNET_DISK_get_blocks_available (const char *part);
  218. /**
  219. * Checks whether a handle is invalid
  220. *
  221. * @param h handle to check
  222. * @return GNUNET_YES if invalid, GNUNET_NO if valid
  223. */
  224. int
  225. GNUNET_DISK_handle_invalid (const struct GNUNET_DISK_FileHandle *h);
  226. /**
  227. * Check that fil corresponds to a filename
  228. * (of a file that exists and that is not a directory).
  229. *
  230. * @param fil filename to check
  231. * @return GNUNET_YES if yes, GNUNET_NO if not a file, GNUNET_SYSERR if something
  232. * else (will print an error message in that case, too).
  233. */
  234. int
  235. GNUNET_DISK_file_test (const char *fil);
  236. /**
  237. * Move the read/write pointer in a file
  238. * @param h handle of an open file
  239. * @param offset position to move to
  240. * @param whence specification to which position the offset parameter relates to
  241. * @return the new position on success, GNUNET_SYSERR otherwise
  242. */
  243. off_t
  244. GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle *h, off_t offset,
  245. enum GNUNET_DISK_Seek whence);
  246. /**
  247. * Get the size of the file (or directory)
  248. * of the given file (in bytes).
  249. *
  250. * @param filename name of the file or directory
  251. * @param size set to the size of the file (or,
  252. * in the case of directories, the sum
  253. * of all sizes of files in the directory)
  254. * @param includeSymLinks should symbolic links be
  255. * included?
  256. * @return GNUNET_OK on success, GNUNET_SYSERR on error
  257. */
  258. int
  259. GNUNET_DISK_file_size (const char *filename, uint64_t * size,
  260. int includeSymLinks);
  261. /**
  262. * Obtain some unique identifiers for the given file
  263. * that can be used to identify it in the local system.
  264. * This function is used between GNUnet processes to
  265. * quickly check if two files with the same absolute path
  266. * are actually identical. The two processes represent
  267. * the same peer but may communicate over the network
  268. * (and the file may be on an NFS volume). This function
  269. * may not be supported on all operating systems.
  270. *
  271. * @param filename name of the file
  272. * @param dev set to the device ID
  273. * @param ino set to the inode ID
  274. * @return GNUNET_OK on success
  275. */
  276. int
  277. GNUNET_DISK_file_get_identifiers (const char *filename, uint64_t * dev,
  278. uint64_t * ino);
  279. /**
  280. * Create an (empty) temporary file on disk. If the given name is not
  281. * an absolute path, the current 'TMPDIR' will be prepended. In any case,
  282. * 6 random characters will be appended to the name to create a unique
  283. * filename.
  284. *
  285. * @param t component to use for the name;
  286. * does NOT contain "XXXXXX" or "/tmp/".
  287. * @return NULL on error, otherwise name of fresh
  288. * file on disk in directory for temporary files
  289. */
  290. char *
  291. GNUNET_DISK_mktemp (const char *t);
  292. /**
  293. * Open a file. Note that the access permissions will only be
  294. * used if a new file is created and if the underlying operating
  295. * system supports the given permissions.
  296. *
  297. * @param fn file name to be opened
  298. * @param flags opening flags, a combination of GNUNET_DISK_OPEN_xxx bit flags
  299. * @param perm permissions for the newly created file, use
  300. * GNUNET_DISK_PERM_NONE if a file could not be created by this
  301. * call (because of flags)
  302. * @return IO handle on success, NULL on error
  303. */
  304. struct GNUNET_DISK_FileHandle *
  305. GNUNET_DISK_file_open (const char *fn, enum GNUNET_DISK_OpenFlags flags,
  306. enum GNUNET_DISK_AccessPermissions perm);
  307. /**
  308. * Creates an interprocess channel
  309. * @param blocking creates an asynchronous pipe if set to GNUNET_NO
  310. * @param inherit_read 1 to make read handle inheritable, 0 otherwise (NT only)
  311. * @param inherit_write 1 to make write handle inheritable, 0 otherwise (NT only)
  312. * @return handle to the new pipe, NULL on error
  313. */
  314. struct GNUNET_DISK_PipeHandle *
  315. GNUNET_DISK_pipe (int blocking, int inherit_read, int inherit_write);
  316. /**
  317. * Closes an interprocess channel
  318. * @param p pipe
  319. * @return GNUNET_OK on success, GNUNET_SYSERR otherwise
  320. */
  321. int
  322. GNUNET_DISK_pipe_close (struct GNUNET_DISK_PipeHandle *p);
  323. /**
  324. * Closes one half of an interprocess channel
  325. *
  326. * @param p pipe to close end of
  327. * @param end which end of the pipe to close
  328. * @return GNUNET_OK on success, GNUNET_SYSERR otherwise
  329. */
  330. int
  331. GNUNET_DISK_pipe_close_end (struct GNUNET_DISK_PipeHandle *p,
  332. enum GNUNET_DISK_PipeEnd end);
  333. /**
  334. * Close an open file.
  335. *
  336. * @param h file handle
  337. * @return GNUNET_OK on success, GNUNET_SYSERR otherwise
  338. */
  339. int
  340. GNUNET_DISK_file_close (struct GNUNET_DISK_FileHandle *h);
  341. /**
  342. * Get the handle to a particular pipe end
  343. *
  344. * @param p pipe
  345. * @param n end to access
  346. * @return handle for the respective end
  347. */
  348. const struct GNUNET_DISK_FileHandle *
  349. GNUNET_DISK_pipe_handle (const struct GNUNET_DISK_PipeHandle *p,
  350. enum GNUNET_DISK_PipeEnd n);
  351. /**
  352. * Read the contents of a binary file into a buffer.
  353. * @param h handle to an open file
  354. * @param result the buffer to write the result to
  355. * @param len the maximum number of bytes to read
  356. * @return the number of bytes read on success, GNUNET_SYSERR on failure
  357. */
  358. ssize_t
  359. GNUNET_DISK_file_read (const struct GNUNET_DISK_FileHandle *h, void *result,
  360. size_t len);
  361. /**
  362. * Read the contents of a binary file into a buffer.
  363. *
  364. * @param fn file name
  365. * @param result the buffer to write the result to
  366. * @param len the maximum number of bytes to read
  367. * @return number of bytes read, GNUNET_SYSERR on failure
  368. */
  369. ssize_t
  370. GNUNET_DISK_fn_read (const char *fn, void *result, size_t len);
  371. /**
  372. * Write a buffer to a file.
  373. *
  374. * @param h handle to open file
  375. * @param buffer the data to write
  376. * @param n number of bytes to write
  377. * @return number of bytes written on success, GNUNET_SYSERR on error
  378. */
  379. ssize_t
  380. GNUNET_DISK_file_write (const struct GNUNET_DISK_FileHandle *h,
  381. const void *buffer, size_t n);
  382. /**
  383. * Write a buffer to a file. If the file is longer than
  384. * the given buffer size, it will be truncated.
  385. *
  386. * @param fn file name
  387. * @param buffer the data to write
  388. * @param n number of bytes to write
  389. * @param mode file permissions
  390. * @return number of bytes written on success, GNUNET_SYSERR on error
  391. */
  392. ssize_t
  393. GNUNET_DISK_fn_write (const char *fn, const void *buffer, size_t n,
  394. enum GNUNET_DISK_AccessPermissions mode);
  395. /**
  396. * Copy a file.
  397. *
  398. * @param src file to copy
  399. * @param dst destination file name
  400. * @return GNUNET_OK on success, GNUNET_SYSERR on error
  401. */
  402. int
  403. GNUNET_DISK_file_copy (const char *src, const char *dst);
  404. /**
  405. * Scan a directory for files.
  406. *
  407. * @param dirName the name of the directory
  408. * @param callback the method to call for each file
  409. * @param callback_cls closure for callback
  410. * @return the number of files found, -1 on error
  411. */
  412. int
  413. GNUNET_DISK_directory_scan (const char *dirName,
  414. GNUNET_FileNameCallback callback,
  415. void *callback_cls);
  416. /**
  417. * Opaque handle used for iterating over a directory.
  418. */
  419. struct GNUNET_DISK_DirectoryIterator;
  420. /**
  421. * Function called to iterate over a directory.
  422. *
  423. * @param cls closure
  424. * @param di argument to pass to "GNUNET_DISK_directory_iterator_next" to
  425. * get called on the next entry (or finish cleanly);
  426. * NULL on error (will be the last call in that case)
  427. * @param filename complete filename (absolute path)
  428. * @param dirname directory name (absolute path)
  429. */
  430. typedef void (*GNUNET_DISK_DirectoryIteratorCallback) (void *cls,
  431. struct
  432. GNUNET_DISK_DirectoryIterator
  433. * di,
  434. const char *filename,
  435. const char *dirname);
  436. /**
  437. * This function must be called during the DiskIteratorCallback
  438. * (exactly once) to schedule the task to process the next
  439. * filename in the directory (if there is one).
  440. *
  441. * @param iter opaque handle for the iterator
  442. * @param can set to GNUNET_YES to terminate the iteration early
  443. * @return GNUNET_YES if iteration will continue,
  444. * GNUNET_NO if this was the last entry (and iteration is complete),
  445. * GNUNET_SYSERR if "can" was YES
  446. */
  447. int
  448. GNUNET_DISK_directory_iterator_next (struct GNUNET_DISK_DirectoryIterator *iter,
  449. int can);
  450. /**
  451. * Scan a directory for files using the scheduler to run a task for
  452. * each entry. The name of the directory must be expanded first (!).
  453. * If a scheduler does not need to be used, GNUNET_DISK_directory_scan
  454. * may provide a simpler API.
  455. *
  456. * @param prio priority to use
  457. * @param dirName the name of the directory
  458. * @param callback the method to call for each file
  459. * @param callback_cls closure for callback
  460. */
  461. void
  462. GNUNET_DISK_directory_iterator_start (enum GNUNET_SCHEDULER_Priority prio,
  463. const char *dirName,
  464. GNUNET_DISK_DirectoryIteratorCallback
  465. callback, void *callback_cls);
  466. /**
  467. * Create the directory structure for storing
  468. * a file.
  469. *
  470. * @param filename name of a file in the directory
  471. * @returns GNUNET_OK on success, GNUNET_SYSERR on failure,
  472. * GNUNET_NO if directory exists but is not writeable
  473. */
  474. int
  475. GNUNET_DISK_directory_create_for_file (const char *filename);
  476. /**
  477. * Test if "fil" is a directory that can be accessed.
  478. * Will not print an error message if the directory
  479. * does not exist. Will log errors if GNUNET_SYSERR is
  480. * returned.
  481. *
  482. * @param fil filename to test
  483. * @return GNUNET_YES if yes, GNUNET_NO if does not exist, GNUNET_SYSERR
  484. * on any error and if exists but not directory
  485. */
  486. int
  487. GNUNET_DISK_directory_test (const char *fil);
  488. /**
  489. * Remove all files in a directory (rm -rf). Call with
  490. * caution.
  491. *
  492. * @param fileName the file to remove
  493. * @return GNUNET_OK on success, GNUNET_SYSERR on error
  494. */
  495. int
  496. GNUNET_DISK_directory_remove (const char *fileName);
  497. /**
  498. * Implementation of "mkdir -p"
  499. *
  500. * @param dir the directory to create
  501. * @returns GNUNET_SYSERR on failure, GNUNET_OK otherwise
  502. */
  503. int
  504. GNUNET_DISK_directory_create (const char *dir);
  505. /**
  506. * Lock a part of a file.
  507. *
  508. * @param fh file handle
  509. * @param lockStart absolute position from where to lock
  510. * @param lockEnd absolute position until where to lock
  511. * @param excl GNUNET_YES for an exclusive lock
  512. * @return GNUNET_OK on success, GNUNET_SYSERR on error
  513. */
  514. int
  515. GNUNET_DISK_file_lock (struct GNUNET_DISK_FileHandle *fh, off_t lockStart,
  516. off_t lockEnd, int excl);
  517. /**
  518. * Unlock a part of a file
  519. * @param fh file handle
  520. * @param unlockStart absolute position from where to unlock
  521. * @param unlockEnd absolute position until where to unlock
  522. * @return GNUNET_OK on success, GNUNET_SYSERR on error
  523. */
  524. int
  525. GNUNET_DISK_file_unlock (struct GNUNET_DISK_FileHandle *fh, off_t unlockStart,
  526. off_t unlockEnd);
  527. /**
  528. * @brief Removes special characters as ':' from a filename.
  529. * @param fn the filename to canonicalize
  530. */
  531. void
  532. GNUNET_DISK_filename_canonicalize (char *fn);
  533. /**
  534. * @brief Change owner of a file
  535. * @param filename file to change
  536. * @param user new owner of the file
  537. * @return GNUNET_OK on success, GNUNET_SYSERR on failure
  538. */
  539. int
  540. GNUNET_DISK_file_change_owner (const char *filename, const char *user);
  541. /**
  542. * Construct full path to a file inside of the private
  543. * directory used by GNUnet. Also creates the corresponding
  544. * directory. If the resulting name is supposed to be
  545. * a directory, end the last argument in '/' (or pass
  546. * DIR_SEPARATOR_STR as the last argument before NULL).
  547. *
  548. * @param cfg configuration to use
  549. * @param serviceName name of the service asking
  550. * @param ... is NULL-terminated list of
  551. * path components to append to the
  552. * private directory name.
  553. * @return the constructed filename
  554. */
  555. char *
  556. GNUNET_DISK_get_home_filename (const struct GNUNET_CONFIGURATION_Handle *cfg,
  557. const char *serviceName, ...);
  558. /**
  559. * Opaque handle for a memory-mapping operation.
  560. */
  561. struct GNUNET_DISK_MapHandle;
  562. /**
  563. * Map a file into memory
  564. * @param h open file handle
  565. * @param m handle to the new mapping (will be set)
  566. * @param access access specification, GNUNET_DISK_MAP_TYPE_xxx
  567. * @param len size of the mapping
  568. * @return pointer to the mapped memory region, NULL on failure
  569. */
  570. void *
  571. GNUNET_DISK_file_map (const struct GNUNET_DISK_FileHandle *h,
  572. struct GNUNET_DISK_MapHandle **m,
  573. enum GNUNET_DISK_MapType access, size_t len);
  574. /**
  575. * Unmap a file
  576. *
  577. * @param h mapping handle
  578. * @return GNUNET_OK on success, GNUNET_SYSERR otherwise
  579. */
  580. int
  581. GNUNET_DISK_file_unmap (struct GNUNET_DISK_MapHandle *h);
  582. /**
  583. * Write file changes to disk
  584. * @param h handle to an open file
  585. * @return GNUNET_OK on success, GNUNET_SYSERR otherwise
  586. */
  587. int
  588. GNUNET_DISK_file_sync (const struct GNUNET_DISK_FileHandle *h);
  589. /**
  590. * Creates a named pipe/FIFO and opens it
  591. * @param fn pointer to the name of the named pipe or to NULL
  592. * @param flags open flags
  593. * @param perm access permissions
  594. * @return pipe handle on success, NULL on error
  595. */
  596. struct GNUNET_DISK_FileHandle *
  597. GNUNET_DISK_npipe_create (char **fn, enum GNUNET_DISK_OpenFlags flags,
  598. enum GNUNET_DISK_AccessPermissions perm);
  599. /**
  600. * Opens already existing named pipe/FIFO
  601. *
  602. * @param fn name of an existing named pipe
  603. * @param flags open flags
  604. * @param perm access permissions
  605. * @return pipe handle on success, NULL on error
  606. */
  607. struct GNUNET_DISK_FileHandle *
  608. GNUNET_DISK_npipe_open (const char *fn, enum GNUNET_DISK_OpenFlags flags,
  609. enum GNUNET_DISK_AccessPermissions perm);
  610. /**
  611. * Closes a named pipe/FIFO
  612. * @param pipe named pipe
  613. * @return GNUNET_OK on success, GNUNET_SYSERR otherwise
  614. */
  615. int
  616. GNUNET_DISK_npipe_close (struct GNUNET_DISK_FileHandle *pipe);
  617. #if 0 /* keep Emacsens' auto-indent happy */
  618. {
  619. #endif
  620. #ifdef __cplusplus
  621. }
  622. #endif
  623. /* ifndef GNUNET_DISK_LIB_H */
  624. #endif
  625. /* end of gnunet_disk_lib.h */