jfs Struct Reference

The main file structure. More...

#include <common.h>

Collaboration diagram for jfs:

Collaboration graph
[legend]

Data Fields

int fd
 Real file fd.
char * name
 Real file path.
char * jdir
 Journal directory path.
int jdirfd
 Journal directory file descriptor.
int jfd
 Journal's lock file descriptor.
unsigned int * jmap
 Journal's lock file mmap.
uint32_t flags
 Journal flags.
uint32_t open_flags
 Flags passed to the real open().
struct jlingerltrans
 Lingering transactions (linked list).
size_t ltrans_len
 Length of all the lingered transactions.
pthread_mutex_t ltlock
 Lingering transactions' lock.
pthread_mutex_t lock
 A soft lock used in some operations.
struct autosync_cfgas_cfg
 Autosync config.

Detailed Description

The main file structure.

Definition at line 31 of file common.h.


Field Documentation

int jfs::fd

char* jfs::name

Real file path.

Definition at line 36 of file common.h.

Referenced by jclose(), jfsck(), and jopen().

char* jfs::jdir

Journal directory path.

Definition at line 39 of file common.h.

Referenced by get_jtfile(), is_broken(), jclose(), jfsck(), jmove_journal(), jopen(), and mark_broken().

Journal directory file descriptor.

Definition at line 42 of file common.h.

Referenced by jclose(), jfsck(), jmove_journal(), jopen(), journal_commit(), and journal_free().

int jfs::jfd

Journal's lock file descriptor.

Definition at line 45 of file common.h.

Referenced by free_tid(), get_tid(), jclose(), jfsck(), and jopen().

unsigned int* jfs::jmap

Journal's lock file mmap.

Definition at line 48 of file common.h.

Referenced by free_tid(), get_tid(), jclose(), jfsck(), and jopen().

uint32_t jfs::flags

Journal flags.

Definition at line 51 of file common.h.

Referenced by jclose(), jfopen(), jopen(), and jtrans_new().

uint32_t jfs::open_flags

Flags passed to the real open().

Definition at line 54 of file common.h.

Referenced by jopen(), jwrite(), and jwritev().

struct jlinger* jfs::ltrans [read]

Lingering transactions (linked list).

Definition at line 57 of file common.h.

Referenced by jopen(), jsync(), and jtrans_commit().

Length of all the lingered transactions.

Definition at line 60 of file common.h.

Referenced by autosync_check(), autosync_thread(), jopen(), jsync(), and jtrans_commit().

pthread_mutex_t jfs::ltlock

Lingering transactions' lock.

Definition at line 63 of file common.h.

Referenced by jopen(), jsync(), and jtrans_commit().

pthread_mutex_t jfs::lock

A soft lock used in some operations.

Definition at line 66 of file common.h.

Referenced by jclose(), jfeof(), jfseek(), jlseek(), jopen(), jread(), jreadv(), jwrite(), and jwritev().

struct autosync_cfg* jfs::as_cfg [read]

Autosync config.

Definition at line 69 of file common.h.

Referenced by autosync_check(), jfs_autosync_start(), jfs_autosync_stop(), and jopen().


The documentation for this struct was generated from the following file:

Generated on Sat Sep 12 13:33:34 2009 for libjio (internal) by  doxygen 1.5.8