Linux Kernel
3.7.1
|
#include <linux/crc32.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <asm/div64.h>
#include "ubi.h"
Go to the source code of this file.
Functions | |
int | ubi_change_vtbl_record (struct ubi_device *ubi, int idx, struct ubi_vtbl_record *vtbl_rec) |
int | ubi_vtbl_rename_volumes (struct ubi_device *ubi, struct list_head *rename_list) |
int | ubi_read_volume_table (struct ubi_device *ubi, struct ubi_attach_info *ai) |
int ubi_change_vtbl_record | ( | struct ubi_device * | ubi, |
int | idx, | ||
struct ubi_vtbl_record * | vtbl_rec | ||
) |
ubi_change_vtbl_record - change volume table record. : UBI device description object : table index to change : new volume table record
This function changes volume table record . If is NULL, empty volume table record is written. The caller does not have to calculate CRC of the record as it is done by this function. Returns zero in case of success and a negative error code in case of failure.
int ubi_read_volume_table | ( | struct ubi_device * | ubi, |
struct ubi_attach_info * | ai | ||
) |
ubi_read_volume_table - read the volume table. : UBI device description object : attaching information
This function reads volume table, checks it, recover from errors if needed, or creates it if needed. Returns zero in case of success and a negative error code in case of failure.
int ubi_vtbl_rename_volumes | ( | struct ubi_device * | ubi, |
struct list_head * | rename_list | ||
) |
ubi_vtbl_rename_volumes - rename UBI volumes in the volume table. : UBI device description object : list of &struct ubi_rename_entry objects
This function re-names multiple volumes specified in in the volume table. Returns zero in case of success and a negative error code in case of failure.