jtrans Struct Reference

A transaction. More...

#include <trans.h>

Collaboration diagram for jtrans:

Collaboration graph
[legend]

Data Fields

struct jfsfs
 Journal file structure to operate on.
int id
 Transaction id.
uint32_t flags
 Transaction flags.
unsigned int numops_r
 Number of read operations in the list.
unsigned int numops_w
 Number of write operations in the list.
size_t len_w
 Sum of the lengths of the write operations.
pthread_mutex_t lock
 Lock that protects the list of operations.
struct operationop
 List of operations.

Detailed Description

A transaction.

Definition at line 8 of file trans.h.


Field Documentation

struct jfs* jtrans::fs [read]

Journal file structure to operate on.

Definition at line 10 of file trans.h.

Referenced by jtrans_add_common(), jtrans_commit(), jtrans_free(), jtrans_new(), jtrans_rollback(), lock_file_ranges(), and operation_read_prev().

Transaction id.

Definition at line 13 of file trans.h.

Referenced by fill_trans(), jfsck(), and jtrans_new().

uint32_t jtrans::flags

Transaction flags.

Definition at line 16 of file trans.h.

Referenced by fill_trans(), jfsck(), jtrans_add_common(), jtrans_commit(), jtrans_new(), jtrans_rollback(), and lock_file_ranges().

unsigned int jtrans::numops_r

Number of read operations in the list.

Definition at line 19 of file trans.h.

Referenced by fill_trans(), jtrans_add_common(), jtrans_commit(), jtrans_new(), and jtrans_rollback().

unsigned int jtrans::numops_w

Number of write operations in the list.

Definition at line 22 of file trans.h.

Referenced by fill_trans(), jtrans_add_common(), jtrans_commit(), jtrans_new(), and jtrans_rollback().

size_t jtrans::len_w

Sum of the lengths of the write operations.

Definition at line 25 of file trans.h.

Referenced by fill_trans(), jtrans_add_common(), jtrans_new(), and jtrans_rollback().

pthread_mutex_t jtrans::lock

Lock that protects the list of operations.

Definition at line 28 of file trans.h.

Referenced by jfsck(), jtrans_add_common(), jtrans_commit(), jtrans_free(), and jtrans_new().

struct operation* jtrans::op [read]

List of operations.

Definition at line 31 of file trans.h.

Referenced by fill_trans(), jfsck(), jtrans_add_common(), jtrans_commit(), jtrans_free(), jtrans_new(), jtrans_rollback(), and lock_file_ranges().


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