Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
super.c File Reference
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/ctype.h>
#include <linux/kthread.h>
#include <linux/parser.h>
#include <linux/seq_file.h>
#include <linux/mount.h>
#include <linux/math64.h>
#include <linux/writeback.h>
#include "ubifs.h"

Go to the source code of this file.

Macros

#define UBIFS_KMALLOC_OK   (128*1024)
 

Enumerations

enum  {
  Opt_fast_unmount, Opt_norm_unmount, Opt_bulk_read, Opt_no_bulk_read,
  Opt_chk_data_crc, Opt_no_chk_data_crc, Opt_override_compr, Opt_err
}
 

Functions

struct inodeubifs_iget (struct super_block *sb, unsigned long inum)
 

Variables

struct kmem_cacheubifs_inode_slab
 
struct super_operations ubifs_super_operations
 

: UBI volume name

open_ubi - parse UBI device name string and open the UBI device.

: UBI volume open mode

The primary method of mounting UBIFS is by specifying the UBI volume character device node path. However, UBIFS may also be mounted withoug any character device node using one of the following methods:

o ubiX_Y - mount UBI device number X, volume Y; o ubiY - mount UBI device number 0, volume Y; o ubiX:NAME - mount UBI device X, volume with name NAME; o ubi:NAME - mount UBI device 0, volume with name NAME.

Alternative '!' separator may be used instead of ':' (because some shells like busybox may interpret ':' as an NFS host name separator). This function returns UBI volume description object in case of success and a negative error code in case of failure.

 late_initcall (ubifs_init)
 
 module_exit (ubifs_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (__stringify(UBIFS_VERSION))
 
 MODULE_AUTHOR ("Artem Bityutskiy, Adrian Hunter")
 
 MODULE_DESCRIPTION ("UBIFS - UBI File System")
 

Macro Definition Documentation

#define UBIFS_KMALLOC_OK   (128*1024)

Definition at line 45 of file super.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
Opt_fast_unmount 
Opt_norm_unmount 
Opt_bulk_read 
Opt_no_bulk_read 
Opt_chk_data_crc 
Opt_no_chk_data_crc 
Opt_override_compr 
Opt_err 

Definition at line 938 of file super.c.

Function Documentation

late_initcall ( ubifs_init  )
MODULE_AUTHOR ( "Artem  Bityutskiy,
Adrian Hunter"   
)
MODULE_DESCRIPTION ( "UBIFS - UBI File System"  )
module_exit ( ubifs_exit  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( __stringify(UBIFS_VERSION )
struct inode* ubifs_iget ( struct super_block sb,
unsigned long  inum 
)
read

Definition at line 100 of file super.c.

Variable Documentation

struct kmem_cache* ubifs_inode_slab

Definition at line 48 of file super.c.

struct super_operations ubifs_super_operations
Initial value:
= {
.alloc_inode = ubifs_alloc_inode,
.destroy_inode = ubifs_destroy_inode,
.put_super = ubifs_put_super,
.write_inode = ubifs_write_inode,
.evict_inode = ubifs_evict_inode,
.statfs = ubifs_statfs,
.dirty_inode = ubifs_dirty_inode,
.remount_fs = ubifs_remount_fs,
.show_options = ubifs_show_options,
.sync_fs = ubifs_sync_fs,
}

Definition at line 1883 of file super.c.