diff options
| author | Vyacheslav Dubeyko <slava@dubeyko.com> | 2014-01-23 18:55:23 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 19:37:00 -0500 |
| commit | d623a9420c9ae2b748ba458c0e9d59084419fce0 (patch) | |
| tree | 2433b495dd6a6136be3231a60b325a29ae6fe815 /Documentation/filesystems | |
| parent | 4b15d61718f0d1bd3bc32e15bffb25a31c1d5782 (diff) | |
nilfs2: add comments for ioctls
Add comments for ioctls in fs/nilfs2/ioctl.c file and describe NILFS2
specific ioctls in Documentation/filesystems/nilfs2.txt.
Signed-off-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Reviewed-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Cc: Wenliang Fan <fanwlexca@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/filesystems')
| -rw-r--r-- | Documentation/filesystems/nilfs2.txt | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Documentation/filesystems/nilfs2.txt b/Documentation/filesystems/nilfs2.txt index 873a2ab2e9f8..06887d46ccf2 100644 --- a/Documentation/filesystems/nilfs2.txt +++ b/Documentation/filesystems/nilfs2.txt | |||
| @@ -81,6 +81,62 @@ nodiscard(*) The discard/TRIM commands are sent to the underlying | |||
| 81 | block device when blocks are freed. This is useful | 81 | block device when blocks are freed. This is useful |
| 82 | for SSD devices and sparse/thinly-provisioned LUNs. | 82 | for SSD devices and sparse/thinly-provisioned LUNs. |
| 83 | 83 | ||
| 84 | Ioctls | ||
| 85 | ====== | ||
| 86 | |||
| 87 | There is some NILFS2 specific functionality which can be accessed by applications | ||
| 88 | through the system call interfaces. The list of all NILFS2 specific ioctls are | ||
| 89 | shown in the table below. | ||
| 90 | |||
| 91 | Table of NILFS2 specific ioctls | ||
| 92 | .............................................................................. | ||
| 93 | Ioctl Description | ||
| 94 | NILFS_IOCTL_CHANGE_CPMODE Change mode of given checkpoint between | ||
| 95 | checkpoint and snapshot state. This ioctl is | ||
| 96 | used in chcp and mkcp utilities. | ||
| 97 | |||
| 98 | NILFS_IOCTL_DELETE_CHECKPOINT Remove checkpoint from NILFS2 file system. | ||
| 99 | This ioctl is used in rmcp utility. | ||
| 100 | |||
| 101 | NILFS_IOCTL_GET_CPINFO Return info about requested checkpoints. This | ||
| 102 | ioctl is used in lscp utility and by | ||
| 103 | nilfs_cleanerd daemon. | ||
| 104 | |||
| 105 | NILFS_IOCTL_GET_CPSTAT Return checkpoints statistics. This ioctl is | ||
| 106 | used by lscp, rmcp utilities and by | ||
| 107 | nilfs_cleanerd daemon. | ||
| 108 | |||
| 109 | NILFS_IOCTL_GET_SUINFO Return segment usage info about requested | ||
| 110 | segments. This ioctl is used in lssu, | ||
| 111 | nilfs_resize utilities and by nilfs_cleanerd | ||
| 112 | daemon. | ||
| 113 | |||
| 114 | NILFS_IOCTL_GET_SUSTAT Return segment usage statistics. This ioctl | ||
| 115 | is used in lssu, nilfs_resize utilities and | ||
| 116 | by nilfs_cleanerd daemon. | ||
| 117 | |||
| 118 | NILFS_IOCTL_GET_VINFO Return information on virtual block addresses. | ||
| 119 | This ioctl is used by nilfs_cleanerd daemon. | ||
| 120 | |||
| 121 | NILFS_IOCTL_GET_BDESCS Return information about descriptors of disk | ||
| 122 | block numbers. This ioctl is used by | ||
| 123 | nilfs_cleanerd daemon. | ||
| 124 | |||
| 125 | NILFS_IOCTL_CLEAN_SEGMENTS Do garbage collection operation in the | ||
| 126 | environment of requested parameters from | ||
| 127 | userspace. This ioctl is used by | ||
| 128 | nilfs_cleanerd daemon. | ||
| 129 | |||
| 130 | NILFS_IOCTL_SYNC Make a checkpoint. This ioctl is used in | ||
| 131 | mkcp utility. | ||
| 132 | |||
| 133 | NILFS_IOCTL_RESIZE Resize NILFS2 volume. This ioctl is used | ||
| 134 | by nilfs_resize utility. | ||
| 135 | |||
| 136 | NILFS_IOCTL_SET_ALLOC_RANGE Define lower limit of segments in bytes and | ||
| 137 | upper limit of segments in bytes. This ioctl | ||
| 138 | is used by nilfs_resize utility. | ||
| 139 | |||
| 84 | NILFS2 usage | 140 | NILFS2 usage |
| 85 | ============ | 141 | ============ |
| 86 | 142 | ||
