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/stddef.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/spinlock.h>
#include <linux/blkdev.h>
#include <linux/backing-dev.h>
#include <linux/buffer_head.h>
#include <linux/vfs.h>
#include <linux/moduleparam.h>
#include <linux/bitmap.h>
#include "sysctl.h"
#include "logfile.h"
#include "quota.h"
#include "usnjrnl.h"
#include "dir.h"
#include "debug.h"
#include "index.h"
#include "inode.h"
#include "aops.h"
#include "layout.h"
#include "malloc.h"
#include "ntfs.h"

Go to the source code of this file.

Macros

#define NTFS_GETOPT_WITH_DEFAULT(option, variable, default_value)
 
#define NTFS_GETOPT(option, variable)
 
#define NTFS_GETOPT_UID(option, variable)
 
#define NTFS_GETOPT_GID(option, variable)
 
#define NTFS_GETOPT_OCTAL(option, variable)
 
#define NTFS_GETOPT_BOOL(option, variable)
 
#define NTFS_GETOPT_OPTIONS_ARRAY(option, variable, opt_array)
 

Enumerations

enum  ON_ERRORS_ACTIONS { ON_ERRORS_PANIC = 0x01, ON_ERRORS_REMOUNT_RO = 0x02, ON_ERRORS_CONTINUE = 0x04, ON_ERRORS_RECOVER = 0x10 }
 

Functions

 DEFINE_MUTEX (ntfs_lock)
 
 MODULE_AUTHOR ("Anton Altaparmakov <[email protected]>")
 
 MODULE_DESCRIPTION ("NTFS 1.2/3.x driver - Copyright (c) 2001-2011 Anton Altaparmakov and Tuxera Inc.")
 
 MODULE_VERSION (NTFS_VERSION)
 
 MODULE_LICENSE ("GPL")
 

Variables

const option_t on_errors_arr []
 
struct kmem_cachentfs_name_cache
 
struct kmem_cachentfs_inode_cache
 
struct kmem_cachentfs_big_inode_cache
 
struct kmem_cachentfs_attr_ctx_cache
 
struct kmem_cachentfs_index_ctx_cache
 

Macro Definition Documentation

#define NTFS_GETOPT (   option,
  variable 
)
Value:
if (!strcmp(p, option)) { \
if (!v || !*v) \
goto needs_arg; \
variable = simple_strtoul(ov = v, &v, 0); \
if (*v) \
goto needs_val; \
}
#define NTFS_GETOPT_BOOL (   option,
  variable 
)
Value:
if (!strcmp(p, option)) { \
if (!simple_getbool(v, &val)) \
goto needs_bool; \
variable = val; \
}
#define NTFS_GETOPT_GID (   option,
  variable 
)
Value:
if (!strcmp(p, option)) { \
gid_t gid_value; \
if (!v || !*v) \
goto needs_arg; \
gid_value = simple_strtoul(ov = v, &v, 0); \
if (*v) \
goto needs_val; \
variable = make_kgid(current_user_ns(), gid_value); \
if (!gid_valid(variable)) \
goto needs_val; \
}
#define NTFS_GETOPT_OCTAL (   option,
  variable 
)
Value:
if (!strcmp(p, option)) { \
if (!v || !*v) \
goto needs_arg; \
variable = simple_strtoul(ov = v, &v, 8); \
if (*v) \
goto needs_val; \
}
#define NTFS_GETOPT_OPTIONS_ARRAY (   option,
  variable,
  opt_array 
)
Value:
if (!strcmp(p, option)) { \
int _i; \
if (!v || !*v) \
goto needs_arg; \
ov = v; \
if (variable == -1) \
variable = 0; \
for (_i = 0; opt_array[_i].str && *opt_array[_i].str; _i++) \
if (!strcmp(opt_array[_i].str, v)) { \
variable |= opt_array[_i].val; \
break; \
} \
if (!opt_array[_i].str || !*opt_array[_i].str) \
goto needs_val; \
}
#define NTFS_GETOPT_UID (   option,
  variable 
)
Value:
if (!strcmp(p, option)) { \
uid_t uid_value; \
if (!v || !*v) \
goto needs_arg; \
uid_value = simple_strtoul(ov = v, &v, 0); \
if (*v) \
goto needs_val; \
variable = make_kuid(current_user_ns(), uid_value); \
if (!uid_valid(variable)) \
goto needs_val; \
}
#define NTFS_GETOPT_WITH_DEFAULT (   option,
  variable,
  default_value 
)
Value:
if (!strcmp(p, option)) { \
if (!v || !*v) \
variable = default_value; \
else { \
variable = simple_strtoul(ov = v, &v, 0); \
if (*v) \
goto needs_val; \
} \
}

Enumeration Type Documentation

Enumerator:
ON_ERRORS_PANIC 
ON_ERRORS_REMOUNT_RO 
ON_ERRORS_CONTINUE 
ON_ERRORS_RECOVER 

Definition at line 56 of file super.c.

Function Documentation

DEFINE_MUTEX ( ntfs_lock  )
MODULE_AUTHOR ( "Anton Altaparmakov <[email protected]>"  )
MODULE_DESCRIPTION ( "NTFS 1.2/3.x driver - Copyright (c) 2001-2011 Anton Altaparmakov and Tuxera Inc."  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( NTFS_VERSION  )

Variable Documentation

struct kmem_cache* ntfs_attr_ctx_cache

Definition at line 3063 of file super.c.

struct kmem_cache* ntfs_big_inode_cache

Definition at line 3049 of file super.c.

struct kmem_cache* ntfs_index_ctx_cache

Definition at line 3064 of file super.c.

struct kmem_cache* ntfs_inode_cache

Definition at line 3048 of file super.c.

struct kmem_cache* ntfs_name_cache

Definition at line 3045 of file super.c.

const option_t on_errors_arr[]
Initial value:
= {
{ ON_ERRORS_PANIC, "panic" },
{ ON_ERRORS_REMOUNT_RO, "remount-ro", },
{ ON_ERRORS_CONTINUE, "continue", },
{ ON_ERRORS_RECOVER, "recover" },
{ 0, NULL }
}

Definition at line 65 of file super.c.