Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures
replay.c File Reference
#include "ubifs.h"
#include <linux/list_sort.h>

Go to the source code of this file.

Data Structures

struct  replay_entry
 
struct  bud_entry
 

Functions

: directory entry name

insert_dent - insert a directory entry node into the replay list. : UBIFS file-system description object : node logical eraseblock number : node offset : node length : node key

: directory entry name length : sequence number : non-zero if this is a deletion : number of bytes in use in a LEB

This function inserts a scanned directory entry node or an extended attribute entry to the replay list. Returns zero in case of success and a negative error code in case of failure.

int ubifs_validate_entry (struct ubifs_info *c, const struct ubifs_dent_node *dent)
 
int ubifs_replay_journal (struct ubifs_info *c)
 

Function Documentation

int ubifs_replay_journal ( struct ubifs_info c)

ubifs_replay_journal - replay journal. : UBIFS file-system description object

This function scans the journal, replays and cleans it up. It makes sure all memory data structures related to uncommitted journal are built (dirty TNC tree, tree of buds, modified lprops, etc).

Definition at line 1008 of file replay.c.

int ubifs_validate_entry ( struct ubifs_info c,
const struct ubifs_dent_node dent 
)

ubifs_validate_entry - validate directory or extended attribute entry node. : UBIFS file-system description object : the node to validate

This function validates directory or extended attribute entry node . Returns zero if the node is all right and a %-EINVAL if not.

Definition at line 450 of file replay.c.