source: rtems/cpukit/libfs/src/rfs/rtems-rfs-format.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[a9fa9b7]1/*
2 *  COPYRIGHT (c) 2010 Chris Johns <chrisj@rtems.org>
3 *
4 *  The license and distribution terms for this file may be
5 *  found in the file LICENSE in this distribution or at
6 *  http://www.rtems.com/license/LICENSE.
7 */
8/**
9 * @file
10 *
11 * @ingroup rtems-rfs
12 *
13 * RTEMS File System Format.
14 *
15 * This function lets you format a disk in the RFS format.
16 */
17
18#if !defined (_RTEMS_RFS_FORMAT_H_)
19#define _RTEMS_RFS_FORMAT_H_
20
21#include <stddef.h>
22#include <stdbool.h>
23#include <stdint.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#include <rtems/rfs/rtems-rfs-trace.h>
30
31/**
32 * RFS File System Configuration data used to format the file system. For
33 * default values leave the field set to 0.
34 */
[9bc752b]35typedef struct _rtems_rfs_format_config
[a9fa9b7]36{
37  /**
38   * The size of a block.
39   */
40  size_t block_size;
41
42  /**
43   * The number of blocks in a group.
44   */
45  size_t group_blocks;
46
47  /**
48   * The number of inodes in a group.
49   */
50  size_t group_inodes;
51
52  /**
53   * The percentage overhead allocated to inodes.
54   */
55  int inode_overhead;
56
57  /**
58   * The maximum length of a name.
59   */
60  size_t max_name_length;
61
62  /**
63   * Initialise the inode tables to all ones.
64   */
65  bool initialise_inodes;
66
67  /**
68   * Is the format verbose.
69   */
70  bool verbose;
71
72} rtems_rfs_format_config;
73
74/**
75 * RFS Format command.
76 *
77 * @param name The device name to format.
78 * @param config Pointer to a configuration table.
79 * @retval -1 Error. See errno.
80 * @retval 0 No error. Format successful.
81 */
82int rtems_rfs_format (const char* name, const rtems_rfs_format_config* config);
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif
Note: See TracBrowser for help on using the repository browser.