* [PATCH] Quota-tools support for ext4
@ 2008-10-30 0:35 Mingming Cao
2008-12-17 12:24 ` Jan Kara
0 siblings, 1 reply; 2+ messages in thread
From: Mingming Cao @ 2008-10-30 0:35 UTC (permalink / raw)
To: Jan Kara; +Cc: linux-fsdevel, Eric Sandeen
quota-tools has support for ext4dev filesystem already (at least in
v3.16) . But it seems still missing the ext4 filesystem support which
prevent quotacheck recognizes the ext4 filesystem. The following patch
fixed it for me.
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Index: quota-tools/mntopt.h
===================================================================
--- quota-tools.orig/mntopt.h 2007-08-22 04:26:55.000000000 -0700
+++ quota-tools/mntopt.h 2008-10-29 16:37:57.000000000 -0700
@@ -6,7 +6,8 @@
/* filesystem type */
#define MNTTYPE_EXT2 "ext2" /* 2nd Extended file system */
#define MNTTYPE_EXT3 "ext3" /* ext2 + journaling */
-#define MNTTYPE_EXT4 "ext4dev" /* ext4 filesystem */
+#define MNTTYPE_EXT4 "ext4" /* ext4 filesystem */
+#define MNTTYPE_EXT4DEV "ext4dev"/* ext4dev filesystem */
#define MNTTYPE_MINIX "minix" /* MINIX file system */
#define MNTTYPE_UFS "ufs" /* UNIX file system */
#define MNTTYPE_UDF "udf" /* OSTA UDF file system */
Index: quota-tools/quotacheck.c
===================================================================
--- quota-tools.orig/quotacheck.c 2008-10-29 16:38:50.000000000 -0700
+++ quota-tools/quotacheck.c 2008-10-29 16:39:09.000000000 -0700
@@ -1064,6 +1064,7 @@ static void check_all(void)
!hasmntopt(mnt, MNTOPT_GRPJQUOTA) && !warned &&
(!strcmp(mnt->mnt_type, MNTTYPE_EXT3) ||
!strcmp(mnt->mnt_type, MNTTYPE_EXT4) ||
+ !strcmp(mnt->mnt_type, MNTTYPE_EXT4DEV) ||
!strcmp(mnt->mnt_type, MNTTYPE_REISER))) {
struct utsname stats;
Index: quota-tools/quotasys.c
===================================================================
--- quota-tools.orig/quotasys.c 2008-10-29 16:39:45.000000000 -0700
+++ quota-tools/quotasys.c 2008-10-29 16:40:01.000000000 -0700
@@ -63,6 +63,7 @@ static int correct_fstype(char *type)
if (!strcmp(type, MNTTYPE_EXT2) ||
!strcmp(type, MNTTYPE_EXT3) ||
!strcmp(type, MNTTYPE_EXT4) ||
+ !strcmp(type, MNTTYPE_EXT4DEV) ||
!strcmp(type, MNTTYPE_JFS) ||
!strcmp(type, MNTTYPE_MINIX) ||
!strcmp(type, MNTTYPE_UFS) ||
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Quota-tools support for ext4
2008-10-30 0:35 [PATCH] Quota-tools support for ext4 Mingming Cao
@ 2008-12-17 12:24 ` Jan Kara
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kara @ 2008-12-17 12:24 UTC (permalink / raw)
To: Mingming Cao; +Cc: linux-fsdevel, Eric Sandeen
Hi Mingming,
On Wed 29-10-08 17:35:14, Mingming Cao wrote:
> quota-tools has support for ext4dev filesystem already (at least in
> v3.16) . But it seems still missing the ext4 filesystem support which
> prevent quotacheck recognizes the ext4 filesystem. The following patch
> fixed it for me.
Thanks for your patch. I've merged it. I plan next quota tools release
in the beginning of January.
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-17 12:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-30 0:35 [PATCH] Quota-tools support for ext4 Mingming Cao
2008-12-17 12:24 ` Jan Kara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).