Skip to contentSkip to conversation

+ nilfs2-add-comments-for-ioctls.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jan 6, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Subject: + nilfs2-add-comments-for-ioctls.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 06 Jan 2014 13:47:56 -0800

The patch titled
Subject: nilfs2: add comments for ioctls
has been added to the -mm tree. Its filename is
nilfs2-add-comments-for-ioctls.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/nilfs2-add-comments-for-ioctls.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/nilfs2-add-comments-for-ioctls.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Vyacheslav Dubeyko <[email protected]>
Subject: 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.

Wenliang Fan <[email protected]>

---

 Documentation/filesystems/nilfs2.txt |   56 +++
 fs/nilfs2/ioctl.c                    |  363 ++++++++++++++++++++++++-
 2 files changed, 418 insertions(+), 1 deletion(-)
Documentation/filesystems/nilfs2.txt renamed from Documentation/filesystems/nilfs2.txt~nilfs2-add-comments-for-ioctls +56 -0
diff -puN Documentation/filesystems/nilfs2.txt~nilfs2-add-comments-for-ioctls Documentation/filesystems/nilfs2.txt
@@ -81,6 +81,62 @@ nodiscard(*)		The discard/TRIM commands
 			block device when blocks are freed.  This is useful
 			for SSD devices and sparse/thinly-provisioned LUNs.
 
+Ioctls
+======
+
+There is some NILFS2 specific functionality which can be accessed by applications
+through the system call interfaces. The list of all NILFS2 specific ioctls are
+shown in the table below.
+
+Table of NILFS2 specific ioctls
+..............................................................................
+ Ioctl			        Description
+ NILFS_IOCTL_CHANGE_CPMODE      Change mode of given checkpoint between
+			        checkpoint and snapshot state. This ioctl is
+			        used in chcp and mkcp utilities.
+
+ NILFS_IOCTL_DELETE_CHECKPOINT  Remove checkpoint from NILFS2 file system.
+			        This ioctl is used in rmcp utility.
+
+ NILFS_IOCTL_GET_CPINFO         Return info about requested checkpoints. This
+			        ioctl is used in lscp utility and by
+			        nilfs_cleanerd daemon.
+
+ NILFS_IOCTL_GET_CPSTAT         Return checkpoints statistics. This ioctl is
+			        used by lscp, rmcp utilities and by
+			        nilfs_cleanerd daemon.
+
+ NILFS_IOCTL_GET_SUINFO         Return segment usage info about requested
+			        segments. This ioctl is used in lssu,
+			        nilfs_resize utilities and by nilfs_cleanerd
+			        daemon.
+
+ NILFS_IOCTL_GET_SUSTAT         Return segment usage statistics. This ioctl
+			        is used in lssu, nilfs_resize utilities and
+			        by nilfs_cleanerd daemon.
+
+ NILFS_IOCTL_GET_VINFO          Return information on virtual block addresses.
+			        This ioctl is used by nilfs_cleanerd daemon.
+
+ NILFS_IOCTL_GET_BDESCS         Return information about descriptors of disk
+			        block numbers. This ioctl is used by
+			        nilfs_cleanerd daemon.
+
+ NILFS_IOCTL_CLEAN_SEGMENTS     Do garbage collection operation in the
+			        environment of requested parameters from
+			        userspace. This ioctl is used by
+			        nilfs_cleanerd daemon.
+
+ NILFS_IOCTL_SYNC               Make a checkpoint. This ioctl is used in
+			        mkcp utility.
+
+ NILFS_IOCTL_RESIZE             Resize NILFS2 volume. This ioctl is used
+			        by nilfs_resize utility.
+
+ NILFS_IOCTL_SET_ALLOC_RANGE    Define lower limit of segments in bytes and
+			        upper limit of segments in bytes. This ioctl
+			        is used by nilfs_resize utility.
+
 NILFS2 usage
 ============
 
fs/nilfs2/ioctl.c renamed from fs/nilfs2/ioctl.c~nilfs2-add-comments-for-ioctls +362 -1

500 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are

logfs-check-for-the-return-value-after-calling-find_or_create_page.patch fs-nilfs2-fix-integer-overflow-in-nilfs_ioctl_wrap_copy.patch fs-nilfs2-fix-integer-overflow-in-nilfs_ioctl_wrap_copy-fix.patch nilfs2-add-comments-for-ioctls.patch