From: Li Zefan <lizf@cn.fujitsu.com>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: linux-ext4@vger.kernel.org
Subject: [PATCH 1/3] ext4: add EXT4_IOC_GETCRTIME ioctl
Date: Wed, 06 Aug 2008 17:09:07 +0800 [thread overview]
Message-ID: <48996A33.3010507@cn.fujitsu.com> (raw)
Add EXT4_IOC_GETCRTIME ioctl, and then we can use it in
e2fsprogs.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
fs/ext4/ext4.h | 1 +
fs/ext4/ioctl.c | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 303e41c..a487f2f 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -295,6 +295,7 @@ struct ext4_new_group_data {
#define EXT4_IOC_GROUP_ADD _IOW('f', 8,struct ext4_new_group_input)
#define EXT4_IOC_GETVERSION_OLD FS_IOC_GETVERSION
#define EXT4_IOC_SETVERSION_OLD FS_IOC_SETVERSION
+#define EXT4_IOC_GETCRTIME _IOR('f', 9, struct timespec)
#ifdef CONFIG_JBD2_DEBUG
#define EXT4_IOC_WAIT_FOR_READONLY _IOR('f', 99, long)
#endif
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
index 7a6c2f1..6204b5d 100644
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@ -269,6 +269,9 @@ setversion_out:
case EXT4_IOC_MIGRATE:
return ext4_ext_migrate(inode, filp, cmd, arg);
+ case EXT4_IOC_GETCRTIME:
+ return put_user(ei->i_crtime, (struct timespec __user *)arg);
+
default:
return -ENOTTY;
}
--
1.5.4.rc3
next reply other threads:[~2008-08-06 9:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-06 9:09 Li Zefan [this message]
2008-08-10 2:26 ` [PATCH 1/3] ext4: add EXT4_IOC_GETCRTIME ioctl Theodore Tso
2008-08-18 2:08 ` Li Zefan
2008-08-18 2:36 ` Theodore Tso
2008-08-18 9:01 ` Andreas Dilger
2008-08-18 10:03 ` Li Zefan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48996A33.3010507@cn.fujitsu.com \
--to=lizf@cn.fujitsu.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.