mountdata.h File Reference

Defenition of the structures which are related to a mount point. More...

#include <linux/list.h>
#include <linux/rwsem.h>
#include <linux/kernel.h>
#include <linux/mount.h>
#include <asm/atomic.h>
#include <linux/fs.h>
Include dependency graph for mountdata.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mumu_mount_data
 The structure is created once per mounted FS. More...

Defines

#define DEFAULTMAXBLOCKSIZE   (32 * 1024)
#define DEFAULTMAXENTRIES   (64 * 1024)

Functions

int mumufs_parse_opt (char *opt, struct mumu_mount_data *d)
 parses mount parameters and fills the mumu_mount_data structure
int mumufs_show_options (struct seq_file *m, struct vfsmount *mnt)
 shows the options which were used when the FS was mounted
int mumufs_init_mount_data (struct mumu_mount_data *d)
 initialises mount point data
int mumufs_umount_cleanup (struct super_block *sb)
 cleans up the mount point related data

Detailed Description

Defenition of the structures which are related to a mount point.

Author:
Sergey Satskiy Copyright (C) 2007 - 2009 Sergey Satskiy.

This file is released under the GPL.

Definition in file mountdata.h.


Define Documentation

#define DEFAULTMAXBLOCKSIZE   (32 * 1024)

Default limitation: max block size

Definition at line 36 of file mountdata.h.

Referenced by mumufs_parse_opt().

#define DEFAULTMAXENTRIES   (64 * 1024)

Default limitation: max number of entries

Definition at line 39 of file mountdata.h.

Referenced by mumufs_parse_opt().


Function Documentation

int mumufs_init_mount_data ( struct mumu_mount_data d  ) 

initialises mount point data

Parameters:
d mount point data structure pointer
Returns:
0 - success, !0 otherwise

Definition at line 118 of file mountdata.c.

References mumu_mount_data::mount, and mumu_mount_data::number_of_entries.

int mumufs_parse_opt ( char *  opt,
struct mumu_mount_data d 
)

parses mount parameters and fills the mumu_mount_data structure

Parameters:
opt mount parameters
d pointer to a structure where mount parameters are stored
Returns:
0 - success, !0 otherwise

Definition at line 53 of file mountdata.c.

References DEFAULTMAXBLOCKSIZE, DEFAULTMAXENTRIES, mumu_mount_data::max_block_size, mumu_mount_data::max_entries, OPT_MAX_BLOCK_SIZE, and OPT_MAX_ENTRIES.

int mumufs_show_options ( struct seq_file *  m,
struct vfsmount *  mnt 
)

shows the options which were used when the FS was mounted

Parameters:
m area to print into
mnt mount point
Returns:
0 - success, !0 otherwise

Definition at line 99 of file mountdata.c.

References mumu_mount_data::max_block_size, and mumu_mount_data::max_entries.

int mumufs_umount_cleanup ( struct super_block *  sb  ) 

cleans up the mount point related data

Parameters:
sb superblock pointer
Returns:
0 - success, !0 otherwise

Definition at line 132 of file mountdata.c.

References mumu_mount_data::mount.