cluster gfs-kernel/src/gfs/ioctl.c gfs/gfs_quo ...
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: adas at sourceware.org 2007-04-04 22:31:33
Modified files:
gfs-kernel/src/gfs: ioctl.c gfs/gfs_quota : Makefile main.c gfs_quota.h
Added files:
gfs/gfs_quota : layout.c
Log message:
fix for bz 225199 - Same as GFS1 fix in RHEL4 (bz 210362). We don't run throug the entire gfs_quota sparse file to do a list operation anymore. We get the layout of the gfs_quota file on disk and only read quota information off the data blocks that are actually in use. Also added functionality to GFS_IOCTL_SUPER to provide the metadata of the hidden quota file.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ioctl.c.diff?cvsroot=cluster&r1=1.14&r2=1.15
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_quota/layout.c.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_quota/Makefile.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_quota/main.c.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_quota/gfs_quota.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
gfs-kernel/src/gfs/ioctl.c +2 -0
@@ -1464,6 +1464,8 @@ error =gi_set_file_flag (ip, &gi); else if (strcmp(arg0, "get_file_meta") == 0) error =gi_get_file_meta (ip, &gi); + else if (strcmp(arg0, "get_file_meta_quota") == 0) + error =gi_get_file_meta (ip->i_sbd->sd_qinode, &gi); else if (strcmp(arg0, "do_file_flush") == 0) error =gi_do_file_flush (ip, &gi); else if (strcmp(arg0, "get_hfile_stat") == 0)
gfs/gfs_quota/layout.c +613 -0
613 lines not on this page · raw message
gfs/gfs_quota/Makefile +2 -1
@@ -19,7 +19,8 @@ check.c \ main.c \ names.c \ - ondisk.c + ondisk.c \ + layout.c CFLAGS+= -O2 -DHELPER_PROGRAM -D_FILE_OFFSET_BITS=64 \ -DGFS_RELEASE_NAME=\"${RELEASE}\"
gfs/gfs_quota/main.c +2 -63
77 lines not on this page · raw message
gfs/gfs_quota/gfs_quota.h +3 -0
@@ -101,4 +101,7 @@uint32_t name_to_id (int user,char *name,int numbers);char *id_to_name (int user,uint32_t id,int numbers); +/* layout.c */ + +void print_quota_file (commandline_t *comline);#endif /* __GFS_QUOTA_DOT_H__ */
Hi,
gfs/gfs_quota/layout.c line 30
Quoted 5 lines · adas at sourceware.org
gfs/gfs_quota/layout.c +5
-0+ +#define __user +#include <linux/gfs_ioctl.h> +#include <linux/gfs_ondisk.h> +
could it be possible to:
-#include <linux/gfs_ioctl.h>
-#include <linux/gfs_ondisk.h>
+#include "gfs_ioctl.h"
+#include "gfs_ondisk.h"
inline with the rest of the tree? it helps when building the suite on its own and gfs1 headers are not exported from the kernel.
tested with CVS HEAD checkout updated as today.
Thanks
Fabio
Signature · 1 line
I'm going to make him an offer he can't refuse.