Linux Kernel
3.7.1
|
#include <linux/syscalls.h>
#include <linux/export.h>
#include <linux/capability.h>
#include <linux/mnt_namespace.h>
#include <linux/namei.h>
#include <linux/security.h>
#include <linux/idr.h>
#include <linux/acct.h>
#include <linux/ramfs.h>
#include <linux/fs_struct.h>
#include <linux/fsnotify.h>
#include <linux/uaccess.h>
#include "pnode.h"
#include "internal.h"
Go to the source code of this file.
Macros | |
#define | HASH_SHIFT ilog2(PAGE_SIZE / sizeof(struct list_head)) |
#define | HASH_SIZE (1UL << HASH_SHIFT) |
#define | MNT_WRITER_UNDERFLOW_LIMIT -(1<<16) |
Variables | |
struct kobject * | fs_kobj |
Definition at line 26 of file namespace.c.
#define HASH_SIZE (1UL << HASH_SHIFT) |
Definition at line 27 of file namespace.c.
#define MNT_WRITER_UNDERFLOW_LIMIT -(1<<16) |
Definition at line 62 of file namespace.c.
Definition at line 553 of file namespace.c.
__mnt_drop_write - give up write access to a mount : the mount on which to give up write access
Tells the low-level filesystem that we are done performing writes to it. Must be matched with __mnt_want_write() call above.
Definition at line 420 of file namespace.c.
Definition at line 442 of file namespace.c.
Definition at line 232 of file namespace.c.
__mnt_want_write - get write access to a mount without freeze protection : the mount on which to take a write
This tells the low-level filesystem that a write is about to be performed to it, and makes sure that writes are allowed (mnt it read-write) before returning success. This operation does not protect against filesystem being frozen. When the write operation is finished, __mnt_drop_write() must be called. This is effectively a refcount.
Definition at line 301 of file namespace.c.
Definition at line 383 of file namespace.c.
Definition at line 1367 of file namespace.c.
|
read |
Definition at line 2341 of file namespace.c.
Definition at line 2130 of file namespace.c.
Definition at line 2163 of file namespace.c.
Definition at line 1311 of file namespace.c.
DEFINE_BRLOCK | ( | vfsmount_lock | ) |
long do_mount | ( | const char * | dev_name, |
const char * | dir_name, | ||
const char * | type_page, | ||
unsigned long | flags, | ||
void * | data_page | ||
) |
Definition at line 2194 of file namespace.c.
Definition at line 1379 of file namespace.c.
EXPORT_SYMBOL | ( | mnt_drop_write_file | ) |
EXPORT_SYMBOL | ( | mntput | ) |
EXPORT_SYMBOL | ( | mntget | ) |
EXPORT_SYMBOL | ( | mnt_pin | ) |
EXPORT_SYMBOL | ( | mnt_unpin | ) |
EXPORT_SYMBOL | ( | generic_show_options | ) |
EXPORT_SYMBOL | ( | save_mount_options | ) |
EXPORT_SYMBOL | ( | replace_mount_options | ) |
EXPORT_SYMBOL | ( | may_umount_tree | ) |
EXPORT_SYMBOL | ( | may_umount | ) |
EXPORT_SYMBOL | ( | mnt_set_expiry | ) |
EXPORT_SYMBOL | ( | mount_subtree | ) |
EXPORT_SYMBOL | ( | path_is_under | ) |
EXPORT_SYMBOL | ( | kern_unmount | ) |
EXPORT_SYMBOL_GPL | ( | fs_kobj | ) |
EXPORT_SYMBOL_GPL | ( | __mnt_is_readonly | ) |
EXPORT_SYMBOL_GPL | ( | mnt_want_write | ) |
EXPORT_SYMBOL_GPL | ( | mnt_clone_write | ) |
EXPORT_SYMBOL_GPL | ( | mnt_want_write_file | ) |
EXPORT_SYMBOL_GPL | ( | mnt_drop_write | ) |
EXPORT_SYMBOL_GPL | ( | vfs_kern_mount | ) |
EXPORT_SYMBOL_GPL | ( | mark_mounts_for_expiry | ) |
EXPORT_SYMBOL_GPL | ( | kern_mount_data | ) |
Definition at line 1943 of file namespace.c.
Definition at line 947 of file namespace.c.
Definition at line 2452 of file namespace.c.
Definition at line 1390 of file namespace.c.
|
read |
Definition at line 2653 of file namespace.c.
Definition at line 2668 of file namespace.c.
Definition at line 1997 of file namespace.c.
may_umount - check if a mount point is busy : root of mount
This is called to check if a mount point has any open files, pwds, chroots or sub mounts. If the mount has sub mounts this will return busy regardless of whether the sub mounts are busy.
Doesn't take quota and stuff into account. IOW, in some cases it will give false negatives. The main reason why it's here is that we need a non-destructive way to look for easily umountable filesystems.
Definition at line 1077 of file namespace.c.
may_umount_tree - check if a mount tree is busy : root of mount tree
This is called to check if a tree of mounts has any open files, pwds, chroots or sub mounts that are busy.
Definition at line 1040 of file namespace.c.
mnt_clone_write - get write access to a mount : the mount on which to take a write
This is effectively like mnt_want_write, except it must only be used to take an extra write reference on a mountpoint that we already know has a write reference on it. This allows some optimisation.
After finished, mnt_drop_write must be called as usual to drop the reference.
Definition at line 364 of file namespace.c.
mnt_drop_write - give up write access to a mount : the mount on which to give up write access
Tells the low-level filesystem that we are done performing writes to it and also allows filesystem to be frozen again. Must be matched with mnt_want_write() call above.
Definition at line 435 of file namespace.c.
Definition at line 447 of file namespace.c.
Definition at line 145 of file namespace.c.
Definition at line 2605 of file namespace.c.
Definition at line 916 of file namespace.c.
Definition at line 119 of file namespace.c.
mnt_set_expiry - Put a mount on an expiration list : The mount to list. : The list to add the mount to.
Definition at line 1980 of file namespace.c.
Definition at line 671 of file namespace.c.
Definition at line 924 of file namespace.c.
mnt_want_write - get write access to a mount : the mount on which to take a write
This tells the low-level filesystem that a write is about to be performed to it, and makes sure that writes are allowed (mount is read-write, filesystem is not frozen) before returning success. When the write operation is finished, mnt_drop_write() must be called. This is effectively a refcount.
Definition at line 340 of file namespace.c.
Definition at line 400 of file namespace.c.
Definition at line 896 of file namespace.c.
Definition at line 2376 of file namespace.c.
Definition at line 2680 of file namespace.c.
Definition at line 2462 of file namespace.c.
void put_mnt_ns | ( | struct mnt_namespace * | ns | ) |
Definition at line 2638 of file namespace.c.
Definition at line 1091 of file namespace.c.
void replace_mount_options | ( | struct super_block * | sb, |
char * | options | ||
) |
Definition at line 984 of file namespace.c.
void save_mount_options | ( | struct super_block * | sb, |
char * | options | ||
) |
Definition at line 977 of file namespace.c.
int sb_prepare_remount_readonly | ( | struct super_block * | sb | ) |
Definition at line 502 of file namespace.c.
Definition at line 1245 of file namespace.c.
Definition at line 2497 of file namespace.c.
SYSCALL_DEFINE5 | ( | mount | , |
char __user * | , | ||
dev_name | , | ||
char __user * | , | ||
dir_name | , | ||
char __user * | , | ||
type | , | ||
unsigned | long, | ||
flags | , | ||
void __user * | , | ||
data | |||
) |
Definition at line 2406 of file namespace.c.
Definition at line 1119 of file namespace.c.
|
read |
Definition at line 744 of file namespace.c.
Definition at line 41 of file namespace.c.