Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
udfdecl.h File Reference
#include "ecma_167.h"
#include "osta_udf.h"
#include <linux/fs.h>
#include <linux/types.h>
#include <linux/buffer_head.h>
#include <linux/udf_fs_i.h>
#include "udf_sb.h"
#include "udfend.h"
#include "udf_i.h"

Go to the source code of this file.

Data Structures

struct  udf_fileident_bh
 
struct  udf_vds_record
 
struct  generic_desc
 
struct  ustr
 
struct  extent_position
 

Macros

#define pr_fmt(fmt)   "UDF-fs: " fmt
 
#define UDF_PREALLOCATE
 
#define UDF_DEFAULT_PREALLOC_BLOCKS   8
 
#define udf_err(sb, fmt,...)   _udf_err(sb, __func__, fmt, ##__VA_ARGS__)
 
#define udf_warn(sb, fmt,...)   _udf_warn(sb, __func__, fmt, ##__VA_ARGS__)
 
#define udf_info(fmt,...)   pr_info("INFO " fmt, ##__VA_ARGS__)
 
#define udf_debug(fmt,...)   no_printk(fmt, ##__VA_ARGS__)
 
#define udf_fixed_to_variable(x)   ( ( ( (x) >> 5 ) * 39 ) + ( (x) & 0x0000001F ) )
 
#define udf_variable_to_fixed(x)   ( ( ( (x) / 39 ) << 5 ) + ( (x) % 39 ) )
 
#define UDF_EXTENT_LENGTH_MASK   0x3FFFFFFF
 
#define UDF_EXTENT_FLAG_MASK   0xC0000000
 
#define UDF_NAME_PAD   4
 
#define UDF_NAME_LEN   256
 
#define UDF_PATH_LEN   1023
 

Functions

 __printf (3, 4) void _udf_err(struct super_block *sb
 
u8 udf_tag_checksum (const struct tag *t)
 
u64 lvid_get_unique_id (struct super_block *sb)
 
struct inodeudf_find_metadata_inode_efe (struct super_block *sb, u32 meta_file_loc, u32 partition_num)
 
int udf_write_fi (struct inode *inode, struct fileIdentDesc *, struct fileIdentDesc *, struct udf_fileident_bh *, uint8_t *, uint8_t *)
 
long udf_ioctl (struct file *, unsigned int, unsigned long)
 
struct inodeudf_iget (struct super_block *, struct kernel_lb_addr *)
 
int udf_expand_file_adinicb (struct inode *)
 
struct buffer_head * udf_expand_dir_adinicb (struct inode *, int *, int *)
 
struct buffer_head * udf_bread (struct inode *, int, int, int *)
 
int udf_setsize (struct inode *, loff_t)
 
void udf_read_inode (struct inode *)
 
void udf_evict_inode (struct inode *)
 
int udf_write_inode (struct inode *, struct writeback_control *wbc)
 
long udf_block_map (struct inode *, sector_t)
 
int8_t inode_bmap (struct inode *, sector_t, struct extent_position *, struct kernel_lb_addr *, uint32_t *, sector_t *)
 
int udf_add_aext (struct inode *, struct extent_position *, struct kernel_lb_addr *, uint32_t, int)
 
void udf_write_aext (struct inode *, struct extent_position *, struct kernel_lb_addr *, uint32_t, int)
 
int8_t udf_delete_aext (struct inode *, struct extent_position, struct kernel_lb_addr, uint32_t)
 
int8_t udf_next_aext (struct inode *, struct extent_position *, struct kernel_lb_addr *, uint32_t *, int)
 
int8_t udf_current_aext (struct inode *, struct extent_position *, struct kernel_lb_addr *, uint32_t *, int)
 
struct buffer_head * udf_tgetblk (struct super_block *, int)
 
struct buffer_head * udf_tread (struct super_block *, int)
 
struct genericFormatudf_add_extendedattr (struct inode *, uint32_t, uint32_t, uint8_t)
 
struct genericFormatudf_get_extendedattr (struct inode *, uint32_t, uint8_t)
 
struct buffer_head * udf_read_tagged (struct super_block *, uint32_t, uint32_t, uint16_t *)
 
struct buffer_head * udf_read_ptagged (struct super_block *, struct kernel_lb_addr *, uint32_t, uint16_t *)
 
void udf_update_tag (char *, int)
 
void udf_new_tag (char *, uint16_t, uint16_t, uint16_t, uint32_t, int)
 
unsigned int udf_get_last_session (struct super_block *)
 
unsigned long udf_get_last_block (struct super_block *)
 
uint32_t udf_get_pblock (struct super_block *, uint32_t, uint16_t, uint32_t)
 
uint32_t udf_get_pblock_virt15 (struct super_block *, uint32_t, uint16_t, uint32_t)
 
uint32_t udf_get_pblock_virt20 (struct super_block *, uint32_t, uint16_t, uint32_t)
 
uint32_t udf_get_pblock_spar15 (struct super_block *, uint32_t, uint16_t, uint32_t)
 
uint32_t udf_get_pblock_meta25 (struct super_block *, uint32_t, uint16_t, uint32_t)
 
int udf_relocate_blocks (struct super_block *, long, long *)
 
int udf_get_filename (struct super_block *, uint8_t *, uint8_t *, int)
 
int udf_put_filename (struct super_block *, const uint8_t *, uint8_t *, int)
 
int udf_build_ustr (struct ustr *, dstring *, int)
 
int udf_CS0toUTF8 (struct ustr *, const struct ustr *)
 
void udf_free_inode (struct inode *)
 
struct inodeudf_new_inode (struct inode *, umode_t, int *)
 
void udf_truncate_tail_extent (struct inode *)
 
void udf_discard_prealloc (struct inode *)
 
void udf_truncate_extents (struct inode *)
 
void udf_free_blocks (struct super_block *, struct inode *, struct kernel_lb_addr *, uint32_t, uint32_t)
 
int udf_prealloc_blocks (struct super_block *, struct inode *, uint16_t, uint32_t, uint32_t)
 
int udf_new_block (struct super_block *, struct inode *, uint16_t, uint32_t, int *)
 
struct fileIdentDescudf_fileident_read (struct inode *, loff_t *, struct udf_fileident_bh *, struct fileIdentDesc *, struct extent_position *, struct kernel_lb_addr *, uint32_t *, sector_t *)
 
struct fileIdentDescudf_get_fileident (void *buffer, int bufsize, int *offset)
 
struct long_adudf_get_filelongad (uint8_t *, int, uint32_t *, int)
 
struct short_adudf_get_fileshortad (uint8_t *, int, uint32_t *, int)
 
struct timespecudf_disk_stamp_to_time (struct timespec *dest, struct timestamp src)
 
struct timestampudf_time_to_disk_stamp (struct timestamp *dest, struct timespec src)
 

Variables

const charfunction
 
const char const charfmt
 
struct export_operations udf_export_ops
 
struct inode_operations udf_dir_inode_operations
 
struct file_operations udf_dir_operations
 
struct inode_operations udf_file_inode_operations
 
struct file_operations udf_file_operations
 
struct inode_operations udf_symlink_inode_operations
 
struct address_space_operations udf_aops
 
struct address_space_operations udf_adinicb_aops
 
struct address_space_operations udf_symlink_aops
 

Macro Definition Documentation

#define pr_fmt (   fmt)    "UDF-fs: " fmt

Definition at line 4 of file udfdecl.h.

#define udf_debug (   fmt,
  ... 
)    no_printk(fmt, ##__VA_ARGS__)

Definition at line 41 of file udfdecl.h.

#define UDF_DEFAULT_PREALLOC_BLOCKS   8

Definition at line 19 of file udfdecl.h.

#define udf_err (   sb,
  fmt,
  ... 
)    _udf_err(sb, __func__, fmt, ##__VA_ARGS__)

Definition at line 23 of file udfdecl.h.

#define UDF_EXTENT_FLAG_MASK   0xC0000000

Definition at line 49 of file udfdecl.h.

#define UDF_EXTENT_LENGTH_MASK   0x3FFFFFFF

Definition at line 48 of file udfdecl.h.

#define udf_fixed_to_variable (   x)    ( ( ( (x) >> 5 ) * 39 ) + ( (x) & 0x0000001F ) )

Definition at line 45 of file udfdecl.h.

#define udf_info (   fmt,
  ... 
)    pr_info("INFO " fmt, ##__VA_ARGS__)

Definition at line 31 of file udfdecl.h.

#define UDF_NAME_LEN   256

Definition at line 52 of file udfdecl.h.

#define UDF_NAME_PAD   4

Definition at line 51 of file udfdecl.h.

#define UDF_PATH_LEN   1023

Definition at line 53 of file udfdecl.h.

#define UDF_PREALLOCATE

Definition at line 18 of file udfdecl.h.

#define udf_variable_to_fixed (   x)    ( ( ( (x) / 39 ) << 5 ) + ( (x) % 39 ) )

Definition at line 46 of file udfdecl.h.

#define udf_warn (   sb,
  fmt,
  ... 
)    _udf_warn(sb, __func__, fmt, ##__VA_ARGS__)

Definition at line 28 of file udfdecl.h.

Function Documentation

__printf ( ,
 
)
int8_t inode_bmap ( struct inode ,
sector_t  ,
struct extent_position ,
struct kernel_lb_addr ,
uint32_t ,
sector_t  
)

Definition at line 2144 of file inode.c.

u64 lvid_get_unique_id ( struct super_block sb)

Definition at line 1910 of file super.c.

int udf_add_aext ( struct inode ,
struct extent_position ,
struct kernel_lb_addr ,
uint32_t  ,
int   
)

Definition at line 1783 of file inode.c.

struct genericFormat* udf_add_extendedattr ( struct inode ,
uint32_t  ,
uint32_t  ,
uint8_t   
)
read

Definition at line 48 of file misc.c.

long udf_block_map ( struct inode ,
sector_t   
)

Definition at line 2175 of file inode.c.

struct buffer_head* udf_bread ( struct inode ,
int  ,
int  ,
int  
)
read

Definition at line 1109 of file inode.c.

int udf_build_ustr ( struct ustr ,
dstring ,
int   
)

Definition at line 49 of file unicode.c.

int udf_CS0toUTF8 ( struct ustr ,
const struct ustr  
)

Definition at line 102 of file unicode.c.

int8_t udf_current_aext ( struct inode ,
struct extent_position ,
struct kernel_lb_addr ,
uint32_t ,
int   
)

Definition at line 1986 of file inode.c.

int8_t udf_delete_aext ( struct inode ,
struct extent_position  ,
struct kernel_lb_addr  ,
uint32_t   
)

Definition at line 2061 of file inode.c.

void udf_discard_prealloc ( struct inode )

Definition at line 122 of file truncate.c.

struct timespec* udf_disk_stamp_to_time ( struct timespec dest,
struct timestamp  src 
)
read

Definition at line 90 of file udftime.c.

void udf_evict_inode ( struct inode )

Definition at line 71 of file inode.c.

struct buffer_head* udf_expand_dir_adinicb ( struct inode ,
int ,
int  
)
read

Definition at line 259 of file inode.c.

int udf_expand_file_adinicb ( struct inode )

Definition at line 186 of file inode.c.

struct fileIdentDesc* udf_fileident_read ( struct inode ,
loff_t *  ,
struct udf_fileident_bh ,
struct fileIdentDesc ,
struct extent_position ,
struct kernel_lb_addr ,
uint32_t ,
sector_t  
)
read

Definition at line 21 of file directory.c.

struct inode* udf_find_metadata_inode_efe ( struct super_block sb,
u32  meta_file_loc,
u32  partition_num 
)
read

Definition at line 897 of file super.c.

void udf_free_blocks ( struct super_block ,
struct inode ,
struct kernel_lb_addr ,
uint32_t  ,
uint32_t   
)

Definition at line 732 of file balloc.c.

void udf_free_inode ( struct inode )

Definition at line 29 of file ialloc.c.

struct genericFormat* udf_get_extendedattr ( struct inode ,
uint32_t  ,
uint8_t   
)
read

Definition at line 151 of file misc.c.

struct fileIdentDesc* udf_get_fileident ( void buffer,
int  bufsize,
int offset 
)
read

Definition at line 157 of file directory.c.

struct long_ad* udf_get_filelongad ( uint8_t ,
int  ,
uint32_t ,
int   
)
read

Definition at line 221 of file directory.c.

int udf_get_filename ( struct super_block ,
uint8_t ,
uint8_t ,
int   
)

Definition at line 336 of file unicode.c.

struct short_ad* udf_get_fileshortad ( uint8_t ,
int  ,
uint32_t ,
int   
)
read

Definition at line 198 of file directory.c.

unsigned long udf_get_last_block ( struct super_block )

Definition at line 50 of file lowlevel.c.

unsigned int udf_get_last_session ( struct super_block )

Definition at line 28 of file lowlevel.c.

uint32_t udf_get_pblock ( struct super_block ,
uint32_t  ,
uint16_t  ,
uint32_t   
)

Definition at line 30 of file partition.c.

uint32_t udf_get_pblock_meta25 ( struct super_block ,
uint32_t  ,
uint16_t  ,
uint32_t   
)

Definition at line 306 of file partition.c.

uint32_t udf_get_pblock_spar15 ( struct super_block ,
uint32_t  ,
uint16_t  ,
uint32_t   
)

Definition at line 113 of file partition.c.

uint32_t udf_get_pblock_virt15 ( struct super_block ,
uint32_t  ,
uint16_t  ,
uint32_t   
)

Definition at line 47 of file partition.c.

uint32_t udf_get_pblock_virt20 ( struct super_block ,
uint32_t  ,
uint16_t  ,
uint32_t   
)
inline

Definition at line 107 of file partition.c.

struct inode* udf_iget ( struct super_block ,
struct kernel_lb_addr  
)
read

Definition at line 1751 of file inode.c.

long udf_ioctl ( struct file ,
unsigned  int,
unsigned  long 
)

Definition at line 179 of file file.c.

int udf_new_block ( struct super_block ,
struct inode ,
uint16_t  ,
uint32_t  ,
int  
)
inline

Definition at line 795 of file balloc.c.

struct inode* udf_new_inode ( struct inode ,
umode_t  ,
int  
)
read

Definition at line 49 of file ialloc.c.

void udf_new_tag ( char ,
uint16_t  ,
uint16_t  ,
uint16_t  ,
uint32_t  ,
int   
)

Definition at line 279 of file misc.c.

int8_t udf_next_aext ( struct inode ,
struct extent_position ,
struct kernel_lb_addr ,
uint32_t ,
int   
)

Definition at line 1964 of file inode.c.

int udf_prealloc_blocks ( struct super_block ,
struct inode ,
uint16_t  ,
uint32_t  ,
uint32_t   
)
inline

Definition at line 759 of file balloc.c.

int udf_put_filename ( struct super_block ,
const uint8_t ,
uint8_t ,
int   
)

Definition at line 378 of file unicode.c.

void udf_read_inode ( struct inode )
struct buffer_head* udf_read_ptagged ( struct super_block ,
struct kernel_lb_addr ,
uint32_t  ,
uint16_t  
)
read

Definition at line 261 of file misc.c.

struct buffer_head* udf_read_tagged ( struct super_block ,
uint32_t  ,
uint32_t  ,
uint16_t  
)
read

Definition at line 202 of file misc.c.

int udf_relocate_blocks ( struct super_block ,
long  ,
long  
)

Definition at line 153 of file partition.c.

int udf_setsize ( struct inode ,
loff_t   
)

Definition at line 1132 of file inode.c.

u8 udf_tag_checksum ( const struct tag t)

Definition at line 290 of file misc.c.

struct buffer_head* udf_tgetblk ( struct super_block ,
int   
)
read

Definition at line 32 of file misc.c.

struct timestamp* udf_time_to_disk_stamp ( struct timestamp dest,
struct timespec  src 
)
read

Definition at line 122 of file udftime.c.

struct buffer_head* udf_tread ( struct super_block ,
int   
)
read

Definition at line 40 of file misc.c.

void udf_truncate_extents ( struct inode )

Definition at line 203 of file truncate.c.

void udf_truncate_tail_extent ( struct inode )

Definition at line 68 of file truncate.c.

void udf_update_tag ( char ,
int   
)

Definition at line 269 of file misc.c.

void udf_write_aext ( struct inode ,
struct extent_position ,
struct kernel_lb_addr ,
uint32_t  ,
int   
)

Definition at line 1912 of file inode.c.

int udf_write_fi ( struct inode inode,
struct fileIdentDesc ,
struct fileIdentDesc ,
struct udf_fileident_bh ,
uint8_t ,
uint8_t  
)

Definition at line 44 of file namei.c.

int udf_write_inode ( struct inode ,
struct writeback_control wbc 
)

Definition at line 1511 of file inode.c.

Variable Documentation

Definition at line 22 of file udfdecl.h.

const char* function

Definition at line 22 of file udfdecl.h.

struct address_space_operations udf_adinicb_aops

Definition at line 129 of file file.c.

Definition at line 169 of file inode.c.

struct inode_operations udf_dir_inode_operations

Definition at line 1304 of file namei.c.

struct file_operations udf_dir_operations

Definition at line 204 of file dir.c.

struct export_operations udf_export_ops

Definition at line 1297 of file namei.c.

struct inode_operations udf_file_inode_operations

Definition at line 279 of file file.c.

struct file_operations udf_file_operations

Definition at line 244 of file file.c.

struct address_space_operations udf_symlink_aops

Definition at line 123 of file symlink.c.

struct inode_operations udf_symlink_inode_operations

Definition at line 1315 of file namei.c.