cluster gfs-kernel/src/gfs/ioctl.c gfs/gfs_quo ...
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: adas at sourceware.org 2007-01-10 17:53:54
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 bz 210362: We don't run through 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&only_with_tag=RHEL4&r1=1.7.2.4&r2=1.7.2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_quota/layout.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_quota/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.3&r2=1.3.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_quota/main.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.2&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_quota/gfs_quota.h.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.2&r2=1.2.2.1
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/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 +3 -64
81 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__ */