Linux Kernel
3.7.1
|
#include "ubifs.h"
Go to the source code of this file.
Functions | |
int | ubifs_scan_a_node (const struct ubifs_info *c, void *buf, int len, int lnum, int offs, int quiet) |
struct ubifs_scan_leb * | ubifs_start_scan (const struct ubifs_info *c, int lnum, int offs, void *sbuf) |
void | ubifs_end_scan (const struct ubifs_info *c, struct ubifs_scan_leb *sleb, int lnum, int offs) |
int | ubifs_add_snod (const struct ubifs_info *c, struct ubifs_scan_leb *sleb, void *buf, int offs) |
void | ubifs_scanned_corruption (const struct ubifs_info *c, int lnum, int offs, void *buf) |
struct ubifs_scan_leb * | ubifs_scan (const struct ubifs_info *c, int lnum, int offs, void *sbuf, int quiet) |
void | ubifs_scan_destroy (struct ubifs_scan_leb *sleb) |
int ubifs_add_snod | ( | const struct ubifs_info * | c, |
struct ubifs_scan_leb * | sleb, | ||
void * | buf, | ||
int | offs | ||
) |
void ubifs_end_scan | ( | const struct ubifs_info * | c, |
struct ubifs_scan_leb * | sleb, | ||
int | lnum, | ||
int | offs | ||
) |
ubifs_end_scan - update LEB scanning information at end of scan. : UBIFS file-system description object : scanning information : logical eraseblock number : offset to start at (usually zero)
This function returns %0 on success and a negative error code on failure.
|
read |
ubifs_scan - scan a logical eraseblock. : UBIFS file-system description object : logical eraseblock number : offset to start at (usually zero) : scan buffer (must be of
->leb_size bytes in size) : print no messages
This function scans LEB number and returns complete information about its contents. Returns the scaned information in case of success and, %-EUCLEAN if the LEB neads recovery, and other negative error codes in case of failure.
If is non-zero, this function does not print large and scary error messages and flash dumps in case of errors.
int ubifs_scan_a_node | ( | const struct ubifs_info * | c, |
void * | buf, | ||
int | len, | ||
int | lnum, | ||
int | offs, | ||
int | quiet | ||
) |
ubifs_scan_a_node - scan for a node or padding. : UBIFS file-system description object : buffer to scan : length of buffer : logical eraseblock number : offset within the logical eraseblock : print no messages
This function returns a scanning code to indicate what was scanned.
void ubifs_scan_destroy | ( | struct ubifs_scan_leb * | sleb | ) |
|
read |
ubifs_start_scan - create LEB scanning information at start of scan. : UBIFS file-system description object : logical eraseblock number : offset to start at (usually zero) : scan buffer (must be c->leb_size)
This function returns %0 on success and a negative error code on failure.