Skip to contentSkip to conversation

cluster/gfs-kernel/src/gfs Makefile acl.c acl. ...

Cluster-devel [email protected] 1 participant 1 message Jul 10, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rpeterso at sourceware.org 2006-07-10 23:22:34

Modified files:
gfs-kernel/src/gfs: Makefile acl.c acl.h bits.c bits.h bmap.c
bmap.h daemon.c daemon.h dio.c dio.h dir.c dir.h eaops.c eaops.h eattr.c eattr.h file.c file.h fixed_div64.h format.h gfs.h gfs_ioctl.h gfs_ondisk.h glock.c glock.h glops.c glops.h incore.h inode.c inode.h ioctl.c ioctl.h lm.c lm.h log.c log.h lops.c lops.h lvb.c lvb.h main.c mount.c mount.h ondisk.c ops_address.c ops_address.h ops_dentry.c ops_dentry.h ops_export.c ops_export.h ops_file.c ops_file.h ops_fstype.c ops_fstype.h ops_inode.c ops_inode.h ops_super.c ops_super.h ops_vm.c ops_vm.h page.c page.h quota.c quota.h recovery.c recovery.h rgrp.c rgrp.h super.c super.h trans.c trans.h unlinked.c unlinked.h util.c util.h
Added files:
gfs-kernel/src/gfs: sys.c sys.h
Removed files:
gfs-kernel/src/gfs: debug.c debug.h diaper.c diaper.h locking.c
proc.c proc.h

Log message:
Change gfs to work with new locking infrastructure.
Also, changes crosswritten from STABLE, and removed undesired debug code.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/sys.c.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/sys.h.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/Makefile.diff?cvsroot=cluster&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/acl.c.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/acl.h.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/bits.c.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/bits.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/bmap.c.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/bmap.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/daemon.c.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/daemon.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/dio.c.diff?cvsroot=cluster&r1=1.17&r2=1.18
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/dio.h.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/dir.c.diff?cvsroot=cluster&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/dir.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/eaops.c.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/eaops.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/eattr.c.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/eattr.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/file.c.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/file.h.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/fixed_div64.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/format.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/gfs.h.diff?cvsroot=cluster&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/gfs_ioctl.h.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/gfs_ondisk.h.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/glock.c.diff?cvsroot=cluster&r1=1.26&r2=1.27
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/glock.h.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/glops.c.diff?cvsroot=cluster&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/glops.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/incore.h.diff?cvsroot=cluster&r1=1.24&r2=1.25
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/inode.c.diff?cvsroot=cluster&r1=1.23&r2=1.24
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/inode.h.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ioctl.c.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ioctl.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/lm.c.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/lm.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/log.c.diff?cvsroot=cluster&r1=1.18&r2=1.19
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/log.h.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/lops.c.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/lops.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/lvb.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/lvb.h.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/main.c.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/mount.c.diff?cvsroot=cluster&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/mount.h.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ondisk.c.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_address.c.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_address.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_dentry.c.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_dentry.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_export.c.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_export.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_file.c.diff?cvsroot=cluster&r1=1.23&r2=1.24
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_file.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_fstype.c.diff?cvsroot=cluster&r1=1.24&r2=1.25
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_fstype.h.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_inode.c.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_inode.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_super.c.diff?cvsroot=cluster&r1=1.20&r2=1.21
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_super.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_vm.c.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_vm.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/page.c.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/page.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/quota.c.diff?cvsroot=cluster&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/quota.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/recovery.c.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/recovery.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/rgrp.c.diff?cvsroot=cluster&r1=1.18&r2=1.19
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/rgrp.h.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/super.c.diff?cvsroot=cluster&r1=1.17&r2=1.18
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/super.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/trans.c.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/trans.h.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/unlinked.c.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/unlinked.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/util.c.diff?cvsroot=cluster&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/util.h.diff?cvsroot=cluster&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/debug.c.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/debug.h.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/diaper.c.diff?cvsroot=cluster&r1=1.4&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/diaper.h.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/locking.c.diff?cvsroot=cluster&r1=1.5&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/proc.c.diff?cvsroot=cluster&r1=1.7&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/proc.h.diff?cvsroot=cluster&r1=1.2&r2=NONE

/cvs/cluster/cluster/gfs-kernel/src/gfs/sys.c,v --> standard output revision 1.1

- renamed from gfs-kernel/src/gfs/sys.c +398 -0
@@ -0,0 +1,398 @@
+/******************************************************************************
+*******************************************************************************
+**
+**  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
+**  Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
+**
+**  This copyrighted material is made available to anyone wishing to use,
+**  modify, copy, or redistribute it subject to the terms and conditions
+**  of the GNU General Public License v.2.
+**
+*******************************************************************************
+******************************************************************************/
+
+#include <linux/sched.h>
+#include <linux/slab.h>
+#include <linux/smp_lock.h>
+#include <linux/spinlock.h>
+#include <asm/semaphore.h>
+#include <linux/completion.h>
+#include <linux/buffer_head.h>
+#include <linux/proc_fs.h>
+#include <linux/module.h>
+#include <asm/uaccess.h>
+
+#include "gfs.h"
+#include "glock.h"
+#include "lm.h"
+#include "sys.h"
+#include "super.h"
+
+struct list_head gfs_fs_list;
+struct semaphore gfs_fs_lock;
+char *gfs_sys_margs;
+spinlock_t gfs_sys_margs_lock;
+spinlock_t req_lock;
+
+char *gfs_sys_margs;
+spinlock_t gfs_sys_margs_lock;
+
+static ssize_t id_show(struct gfs_sbd *sdp, char *buf)
+{
+	return sprintf(buf, "%s\n", sdp->sd_vfs->s_id);
+}
+
+static ssize_t fsname_show(struct gfs_sbd *sdp, char *buf)
+{
+	return sprintf(buf, "%s\n", sdp->sd_fsname);
+}
+
+struct gfs_attr {
+	struct attribute attr;
+	ssize_t (*show)(struct gfs_sbd *, char *);
+	ssize_t (*store)(struct gfs_sbd *, const char *, size_t);
+};
+
+#define GFS_ATTR(name, mode, show, store) \
+static struct gfs_attr gfs_attr_##name = __ATTR(name, mode, show, store)
+
+GFS_ATTR(id,                  0444, id_show,       NULL);
+GFS_ATTR(fsname,              0444, fsname_show,   NULL);
+
+static struct attribute *gfs_attrs[] = {
+	&gfs_attr_id.attr,
+	&gfs_attr_fsname.attr,
+	NULL,
+};
+
+struct lockstruct_attr {
+	struct attribute attr;
+	ssize_t (*show)(struct gfs_sbd *, char *);
+};
+
+#define LOCKSTRUCT_ATTR(name, fmt)                                          \
+static ssize_t name##_show(struct gfs_sbd *sdp, char *buf)                 \
+{                                                                           \
+	return sprintf(buf, fmt, sdp->sd_lockstruct.ls_##name);             \
+}                                                                           \
+static struct lockstruct_attr lockstruct_attr_##name = __ATTR_RO(name)
+
+LOCKSTRUCT_ATTR(jid,      "%u\n");
+LOCKSTRUCT_ATTR(first,    "%u\n");
+LOCKSTRUCT_ATTR(lvb_size, "%u\n");
+LOCKSTRUCT_ATTR(flags,    "%d\n");
+
+static struct attribute *lockstruct_attrs[] = {
+	&lockstruct_attr_jid.attr,
+	&lockstruct_attr_first.attr,
+	&lockstruct_attr_lvb_size.attr,
+	&lockstruct_attr_flags.attr,
+	NULL
+};
+
+/*
+ * display struct gfs_args fields
+ */
+
+struct args_attr {
+	struct attribute attr;
+	ssize_t (*show)(struct gfs_sbd *, char *);
+};
+
+#define ARGS_ATTR(name, fmt)                                                \
+static ssize_t name##_show(struct gfs_sbd *sdp, char *buf)                 \
+{                                                                           \
+	return sprintf(buf, fmt, sdp->sd_args.ar_##name);                   \
+}                                                                           \
+static struct args_attr args_attr_##name = __ATTR_RO(name)
+
+ARGS_ATTR(lockproto,       "%s\n");
+ARGS_ATTR(locktable,       "%s\n");
+ARGS_ATTR(hostdata,        "%s\n");
+ARGS_ATTR(spectator,       "%d\n");
+ARGS_ATTR(ignore_local_fs, "%d\n");
+ARGS_ATTR(localcaching,    "%d\n");
+ARGS_ATTR(localflocks,     "%d\n");
+ARGS_ATTR(debug,           "%d\n");
+ARGS_ATTR(upgrade,         "%d\n");
+ARGS_ATTR(num_glockd,      "%u\n");
+ARGS_ATTR(suiddir,         "%d\n");
+
+static struct attribute *args_attrs[] = {
+	&args_attr_lockproto.attr,
+	&args_attr_locktable.attr,
+	&args_attr_hostdata.attr,
+	&args_attr_spectator.attr,
+	&args_attr_ignore_local_fs.attr,
+	&args_attr_localcaching.attr,
+	&args_attr_localflocks.attr,
+	&args_attr_debug.attr,
+	&args_attr_upgrade.attr,
+	&args_attr_num_glockd.attr,
+	&args_attr_suiddir.attr,
+	NULL
+};
+
+/*
+ * display counters from superblock
+ */
+
+struct counters_attr {
+	struct attribute attr;
+	ssize_t (*show)(struct gfs_sbd *, char *);
+};
+
+#define COUNTERS_ATTR(name, fmt)                                            \
+static ssize_t name##_show(struct gfs_sbd *sdp, char *buf)                 \
+{                                                                           \
+	return sprintf(buf, fmt, (unsigned int)atomic_read(&sdp->sd_##name)); \
+}                                                                           \
+static struct counters_attr counters_attr_##name = __ATTR_RO(name)
+
+COUNTERS_ATTR(glock_count,      "%u\n");
+COUNTERS_ATTR(glock_held_count, "%u\n");
+COUNTERS_ATTR(inode_count,      "%u\n");
+COUNTERS_ATTR(reclaimed,        "%u\n");
+
+static struct attribute *counters_attrs[] = {
+	&counters_attr_glock_count.attr,
+	&counters_attr_glock_held_count.attr,
+	&counters_attr_inode_count.attr,
+	&counters_attr_reclaimed.attr,
+	NULL
+};
+
+static ssize_t gfs_attr_show(struct kobject *kobj, struct attribute *attr,
+			      char *buf)
+{
+	struct gfs_sbd *sdp = container_of(kobj, struct gfs_sbd, sd_kobj);
+	struct gfs_attr *a = container_of(attr, struct gfs_attr, attr);
+	return a->show ? a->show(sdp, buf) : 0;
+}
+
+static ssize_t gfs_attr_store(struct kobject *kobj, struct attribute *attr,
+			       const char *buf, size_t len)
+{
+	struct gfs_sbd *sdp = container_of(kobj, struct gfs_sbd, sd_kobj);
+	struct gfs_attr *a = container_of(attr, struct gfs_attr, attr);
+	return a->store ? a->store(sdp, buf, len) : len;
+}
+
+static struct sysfs_ops gfs_attr_ops = {
+	.show  = gfs_attr_show,
+	.store = gfs_attr_store,
+};
+
+static struct kobj_type gfs_ktype = {
+	.default_attrs = gfs_attrs,
+	.sysfs_ops     = &gfs_attr_ops,
+};
+
+static struct kset gfs_kset = {
+	.subsys = &fs_subsys,
+	.kobj   = {.name = "gfs",},
+	.ktype  = &gfs_ktype,
+};
+
+static ssize_t tune_set(struct gfs_sbd *sdp, unsigned int *field,
+			int check_zero, const char *buf, size_t len)
+{
+	struct gfs_tune *gt = &sdp->sd_tune;
+	unsigned int x;
+
+	if (!capable(CAP_SYS_ADMIN))
+		return -EACCES;
+
+	x = simple_strtoul(buf, NULL, 0);
+
+	if (check_zero && !x)
+		return -EINVAL;
+
+	spin_lock(&gt->gt_spin);
+	*field = x;
+	spin_unlock(&gt->gt_spin);
+	return len;
+}
+
+struct tune_attr {
+	struct attribute attr;
+	ssize_t (*show)(struct gfs_sbd *, char *);
+	ssize_t (*store)(struct gfs_sbd *, const char *, size_t);
+};
+
+#define TUNE_ATTR_3(name, show, store)                                        \
+static struct tune_attr tune_attr_##name = __ATTR(name, 0644, show, store)
+
+#define TUNE_ATTR_2(name, store)                                              \
+static ssize_t name##_show(struct gfs_sbd *sdp, char *buf)                   \
+{                                                                             \
+	return sprintf(buf, "%u\n", sdp->sd_tune.gt_##name);                  \
+}                                                                             \
+TUNE_ATTR_3(name, name##_show, store)
+
+#define TUNE_ATTR(name, check_zero)                                           \
+static ssize_t name##_store(struct gfs_sbd *sdp, const char *buf, size_t len)\
+{                                                                             \
+	return tune_set(sdp, &sdp->sd_tune.gt_##name, check_zero, buf, len);  \
+}                                                                             \
+TUNE_ATTR_2(name, name##_store)
+
+#define TUNE_ATTR_DAEMON(name, process)                                       \
+static ssize_t name##_store(struct gfs_sbd *sdp, const char *buf, size_t len)\
+{                                                                             \
+	ssize_t r = tune_set(sdp, &sdp->sd_tune.gt_##name, 1, buf, len);      \
+	wake_up_process(sdp->sd_##process);                                   \
+	return r;                                                             \
+}                                                                             \
+TUNE_ATTR_2(name, name##_store)
+
+TUNE_ATTR(ilimit1, 0);
+TUNE_ATTR(ilimit1_tries, 0);
+TUNE_ATTR(ilimit1_min, 0);
+TUNE_ATTR(ilimit2, 0);
+TUNE_ATTR(ilimit2_tries, 0);
+TUNE_ATTR(ilimit2_min, 0);
+TUNE_ATTR(demote_secs, 0);
+TUNE_ATTR(incore_log_blocks, 0);
+TUNE_ATTR(jindex_refresh_secs, 0);
+TUNE_ATTR(quota_warn_period, 0);
+TUNE_ATTR(quota_quantum, 0);
+TUNE_ATTR(atime_quantum, 0);
+TUNE_ATTR(max_readahead, 0);
+TUNE_ATTR(complain_secs, 0);
+TUNE_ATTR(reclaim_limit, 0);
+TUNE_ATTR(prefetch_secs, 0);
+TUNE_ATTR(statfs_slots, 0);
+TUNE_ATTR(new_files_jdata, 0);
+TUNE_ATTR(new_files_directio, 0);
+TUNE_ATTR(quota_simul_sync, 1);
+TUNE_ATTR(max_atomic_write, 1);
+TUNE_ATTR(stall_secs, 1);
+TUNE_ATTR(entries_per_readdir, 1);
+TUNE_ATTR(greedy_default, 1);
+TUNE_ATTR(greedy_quantum, 1);
+TUNE_ATTR(greedy_max, 1);
+TUNE_ATTR_DAEMON(scand_secs, scand_process);
+TUNE_ATTR_DAEMON(recoverd_secs, recoverd_process);
+TUNE_ATTR_DAEMON(logd_secs, logd_process);
+TUNE_ATTR_DAEMON(quotad_secs, quotad_process);
+
+static struct attribute *tune_attrs[] = {
+	&tune_attr_ilimit1.attr,
+	&tune_attr_ilimit1_tries.attr,
+	&tune_attr_ilimit1_min.attr,
+	&tune_attr_ilimit2.attr,
+	&tune_attr_ilimit2_tries.attr,
+	&tune_attr_ilimit2_min.attr,
+	&tune_attr_demote_secs.attr,
+	&tune_attr_incore_log_blocks.attr,
+	&tune_attr_jindex_refresh_secs.attr,
+	&tune_attr_quota_warn_period.attr,
+	&tune_attr_quota_quantum.attr,
+	&tune_attr_atime_quantum.attr,
+	&tune_attr_max_readahead.attr,
+	&tune_attr_complain_secs.attr,
+	&tune_attr_reclaim_limit.attr,
+	&tune_attr_prefetch_secs.attr,
+	&tune_attr_statfs_slots.attr,
+	&tune_attr_quota_simul_sync.attr,
+	&tune_attr_max_atomic_write.attr,
+	&tune_attr_stall_secs.attr,
+	&tune_attr_entries_per_readdir.attr,
+	&tune_attr_greedy_default.attr,
+	&tune_attr_greedy_quantum.attr,
+	&tune_attr_greedy_max.attr,
+	&tune_attr_scand_secs.attr,
+	&tune_attr_recoverd_secs.attr,
+	&tune_attr_logd_secs.attr,
+	&tune_attr_quotad_secs.attr,
+	&tune_attr_new_files_jdata.attr,
+	&tune_attr_new_files_directio.attr,
+	NULL
+};
+
+static struct attribute_group lockstruct_group = {
+	.name = "lockstruct",
+	.attrs = lockstruct_attrs
+};
+
+static struct attribute_group counters_group = {
+	.name = "counters",
+	.attrs = counters_attrs
+};
+
+static struct attribute_group args_group = {
+	.name = "args",
+	.attrs = args_attrs
+};
+
+static struct attribute_group tune_group = {
+	.name = "tune",
+	.attrs = tune_attrs
+};
+
+int gfs_sys_fs_add(struct gfs_sbd *sdp)
+{
+	int error;
+
+	sdp->sd_kobj.kset = &gfs_kset;
+	sdp->sd_kobj.ktype = &gfs_ktype;
+
+	error = kobject_set_name(&sdp->sd_kobj, "%s", sdp->sd_table_name);
+	if (error)
+		goto fail;
+
+	error = kobject_register(&sdp->sd_kobj);
+	if (error)
+		goto fail;
+
+	error = sysfs_create_group(&sdp->sd_kobj, &lockstruct_group);
+	if (error)
+		goto fail_reg;
+
+	error = sysfs_create_group(&sdp->sd_kobj, &counters_group);
+	if (error)
+		goto fail_lockstruct;
+
+	error = sysfs_create_group(&sdp->sd_kobj, &args_group);
+	if (error)
+		goto fail_counters;
+	
+	error = sysfs_create_group(&sdp->sd_kobj, &tune_group);
+	if (error)
+		goto fail_args;
+	return 0;
+
+ fail_args:
+	sysfs_remove_group(&sdp->sd_kobj, &args_group);
+ fail_counters:
+	sysfs_remove_group(&sdp->sd_kobj, &counters_group);
+ fail_lockstruct:
+	sysfs_remove_group(&sdp->sd_kobj, &lockstruct_group);
+ fail_reg:
+	kobject_unregister(&sdp->sd_kobj);
+ fail:
+	return error;
+}
+
+void gfs_sys_fs_del(struct gfs_sbd *sdp)
+{
+	sysfs_remove_group(&sdp->sd_kobj, &tune_group);
+	sysfs_remove_group(&sdp->sd_kobj, &args_group);
+	sysfs_remove_group(&sdp->sd_kobj, &counters_group);
+	sysfs_remove_group(&sdp->sd_kobj, &lockstruct_group);
+	kobject_unregister(&sdp->sd_kobj);
+}
+
+int gfs_sys_init(void)
+{
+	gfs_sys_margs = NULL;
+	spin_lock_init(&gfs_sys_margs_lock);
+	return kset_register(&gfs_kset);
+}
+
+void gfs_sys_uninit(void)
+{
+	kfree(gfs_sys_margs);
+	kset_unregister(&gfs_kset);
+}

/cvs/cluster/cluster/gfs-kernel/src/gfs/sys.h,v --> standard output revision 1.1

- renamed from gfs-kernel/src/gfs/sys.h +27 -0
@@ -0,0 +1,27 @@
+/******************************************************************************
+*******************************************************************************
+**
+**  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
+**  Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
+**
+**  This copyrighted material is made available to anyone wishing to use,
+**  modify, copy, or redistribute it subject to the terms and conditions
+**  of the GNU General Public License v.2.
+**
+*******************************************************************************
+******************************************************************************/
+
+#ifndef __SYS_DOT_H__
+#define __SYS_DOT_H__
+
+/* Allow args to be passed to GFS when using an initial ram disk */
+extern char *gfs_sys_margs;
+extern spinlock_t gfs_sys_margs_lock;
+
+int gfs_sys_fs_add(struct gfs_sbd *sdp);
+void gfs_sys_fs_del(struct gfs_sbd *sdp);
+
+int gfs_sys_init(void);
+void gfs_sys_uninit(void);
+
+#endif /* __SYS_DOT_H__ */
gfs-kernel/src/gfs/Makefile +15 -19
@@ -2,7 +2,7 @@
 ###############################################################################
 ##
 ##  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
-##  Copyright (C) 2004 Red Hat, Inc.  All rights reserved.
+##  Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
 ##
 ##  This copyrighted material is made available to anyone wishing to use,
 ##  modify, copy, or redistribute it subject to the terms and conditions
@@ -11,7 +11,7 @@
 ###############################################################################
 ###############################################################################
 
-top_srcdir = ../..
+top_srcdir = $(shell pwd)/../..
 ifndef USING_KBUILD
 include ${top_srcdir}/make/defines.mk
 UNINSTALL=${top_srcdir}/scripts/uninstall.pl
@@ -20,18 +20,16 @@
 linux_orig = ${top_srcdir}/src/linux-orig
 linux_patched = ${top_srcdir}/src/linux-patched
 
-TARGET = gfs.patch
-
 PWD := $(shell pwd)
 
+TARGET = gfs.patch
+SYMVERFILE := ${KERNEL_SRC}/Module.symvers
+
 obj-m := gfs.o
-gfs-objs := \
-	acl.o \
+gfs-objs := acl.o \
 	bits.o \
 	bmap.o \
 	daemon.o \
-	debug.o \
-	diaper.o \
 	dio.o \
 	dir.o \
 	eaops.o \
@@ -57,24 +55,22 @@
 	ops_super.o \
 	ops_vm.o \
 	page.o \
-	proc.o \
 	quota.o \
 	recovery.o \
 	rgrp.o \
 	super.o \
+	sys.o \
 	trans.o \
 	unlinked.o \
-	util.o \
-	locking.o
-
-EXTRA_CFLAGS += -I$(obj)
+	util.o
 
-#EXTRA_CFLAGS += -DGFS_TRACE
-#EXTRA_CFLAGS += -DGFS_PROFILE
+EXTRA_CFLAGS += -I$(obj) -I${incdir} -I/usr/include 
 
 all:
-	${top_srcdir}/../kdbl/scripts/build_debug gfs *.[ch] > gfs_debug_const.h
-	${MAKE} -C ${KERNEL_SRC} M=${PWD} modules USING_KBUILD=yes
+	rm -f linux lm_interface.h
+	ln -s . linux
+	ln -s ${KERNEL_SRC}/fs/gfs2/lm_interface.h .
+	${MAKE} -C ${KERNEL_SRC} M=${PWD} symverfile=${SYMVERFILE} modules USING_KBUILD=yes
 
 install: all
 	install -d ${module_dir}/fs/gfs
@@ -87,8 +83,8 @@
 	${UNINSTALL} gfs_ondisk.h gfs_ioctl.h ${incdir}/linux
 
 clean:
-	rm -rf linux *.o .*.o.cmd .gfs.ko.cmd \
-		gfs.ko gfs.mod.c .tmp_versions *~ gfs_debug_const.h
+	rm -rf linux *.o .*.o.cmd .gfs.ko.cmd lm_interface.h \
+		gfs.ko gfs.mod.c .tmp_versions *~ *~* Modules.symvers
 
 
 patches: pre add post
gfs-kernel/src/gfs/acl.c +35 -44

216 lines not on this page · raw message

gfs-kernel/src/gfs/acl.h +2 -1
@@ -2,7 +2,7 @@
 *******************************************************************************
 **
 **  Copyright (C) Sistina Software, Inc.  2003  All rights reserved.
-**  Copyright (C) 2004 Red Hat, Inc.  All rights reserved.
+**  Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
 **
 **  This copyrighted material is made available to anyone wishing to use,
 **  modify, copy, or redistribute it subject to the terms and conditions
@@ -33,6 +33,7 @@
 			 struct gfs_ea_request *er,
 			 int *remove, mode_t *mode);
 int gfs_acl_validate_remove(struct gfs_inode *ip, int access);
+int gfs_acl_get(struct gfs_inode *ip, int access, struct posix_acl **acl);
 int gfs_check_acl(struct inode *inode, int mask);
 int gfs_acl_new_prep(struct gfs_inode *dip,
 		     unsigned int type, mode_t *mode,
gfs-kernel/src/gfs/bits.c +5 -11
@@ -2,7 +2,7 @@
 *******************************************************************************
 **
 **  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
-**  Copyright (C) 2004 Red Hat, Inc.  All rights reserved.
+**  Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
 **
 **  This copyrighted material is made available to anyone wishing to use,
 **  modify, copy, or redistribute it subject to the terms and conditions
@@ -53,7 +53,6 @@
 	   unsigned char *buffer, unsigned int buflen,
 	   uint32_t block, unsigned char new_state)
 {
-	ENTER(GFN_SETBIT)
 	unsigned char *byte, *end, cur_state;
 	unsigned int bit;
 
@@ -70,8 +69,6 @@
 		*byte |= new_state << bit;
 	} else
 		gfs_consist_rgrpd(rgd);
-
-	RET(GFN_SETBIT);
 }
 
 /**
@@ -86,7 +83,6 @@
 gfs_testbit(struct gfs_rgrpd *rgd,
 	    unsigned char *buffer, unsigned int buflen, uint32_t block)
 {
-	ENTER(GFN_TESTBIT)
 	unsigned char *byte, *end, cur_state;
 	unsigned int bit;
 
@@ -98,7 +94,7 @@
 
 	cur_state = (*byte >> bit) & GFS_BIT_MASK;
 
-	RETURN(GFN_TESTBIT, cur_state);
+	return cur_state;
 }
 
 /**
@@ -123,7 +119,6 @@
 	   unsigned char *buffer, unsigned int buflen,
 	   uint32_t goal, unsigned char old_state)
 {
-	ENTER(GFN_BITFIT)
 	unsigned char *byte, *end, alloc;
 	uint32_t blk = goal;
 	unsigned int bit;
@@ -144,7 +139,7 @@
 		}
 
 		if (((*byte >> bit) & GFS_BIT_MASK) == old_state)
-			RETURN(GFN_BITFIT, blk);
+			return blk;
 
 		bit += GFS_BIT_SIZE;
 		if (bit >= 8) {
@@ -155,7 +150,7 @@
 		blk++;
 	}
 
-	RETURN(GFN_BITFIT, BFITNOENT);
+	return BFITNOENT;
 }
 
 /**
@@ -172,7 +167,6 @@
 	     unsigned char *buffer, unsigned int buflen,
 	     unsigned char state)
 {
-	ENTER(GFN_BITCOUNT)
 	unsigned char *byte = buffer;
 	unsigned char *end = buffer + buflen;
 	unsigned char state1 = state << 2;
@@ -191,5 +185,5 @@
 			count++;
 	}
 
-	RETURN(GFN_BITCOUNT, count);
+	return count;
 }
gfs-kernel/src/gfs/bits.h +1 -1
@@ -2,7 +2,7 @@
 *******************************************************************************
 **
 **  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
-**  Copyright (C) 2004 Red Hat, Inc.  All rights reserved.
+**  Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
 **
 **  This copyrighted material is made available to anyone wishing to use,
 **  modify, copy, or redistribute it subject to the terms and conditions
gfs-kernel/src/gfs/bmap.c +61 -85

563 lines not on this page · raw message

gfs-kernel/src/gfs/bmap.h +1 -1
@@ -2,7 +2,7 @@
 *******************************************************************************
 **
 **  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
-**  Copyright (C) 2004 Red Hat, Inc.  All rights reserved.
+**  Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
 **
 **  This copyrighted material is made available to anyone wishing to use,
 **  modify, copy, or redistribute it subject to the terms and conditions
gfs-kernel/src/gfs/daemon.c +9 -15
@@ -2,7 +2,7 @@
 *******************************************************************************
 **
 **  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
-**  Copyright (C) 2004 Red Hat, Inc.  All rights reserved.
+**  Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
 **
 **  This copyrighted material is made available to anyone wishing to use,
 **  modify, copy, or redistribute it subject to the terms and conditions
@@ -39,7 +39,6 @@
 int
 gfs_scand(void *data)
 {
-	ENTER(GFN_SCAND)
 	struct gfs_sbd *sdp = (struct gfs_sbd *)data;
 
 	daemonize("gfs_scand");
@@ -62,7 +61,7 @@
 
 	complete(&sdp->sd_thread_completion);
 
-	RETURN(GFN_SCAND, 0);
+	return 0;
 }
 
 /**
@@ -78,7 +77,6 @@
 int
 gfs_glockd(void *data)
 {
-	ENTER(GFN_GLOCKD)
 	struct gfs_sbd *sdp = (struct gfs_sbd *)data;
 
 	daemonize("gfs_glockd");
@@ -96,8 +94,8 @@
 			DECLARE_WAITQUEUE(__wait_chan, current);
 			set_current_state(TASK_INTERRUPTIBLE);
 			add_wait_queue(&sdp->sd_reclaim_wchan, &__wait_chan);
-			if (!atomic_read(&sdp->sd_reclaim_count) &&
-			    test_bit(SDF_GLOCKD_RUN, &sdp->sd_flags))
+			if (!atomic_read(&sdp->sd_reclaim_count)
+			    && test_bit(SDF_GLOCKD_RUN, &sdp->sd_flags))
 				schedule();
 			remove_wait_queue(&sdp->sd_reclaim_wchan, &__wait_chan);
 			set_current_state(TASK_RUNNING);
@@ -106,7 +104,7 @@
 
 	complete(&sdp->sd_thread_completion);
 
-	RETURN(GFN_GLOCKD, 0);
+	return 0;
 }
 
 /**
@@ -118,7 +116,6 @@
 int
 gfs_recoverd(void *data)
 {
-	ENTER(GFN_RECOVERD)
 	struct gfs_sbd *sdp = (struct gfs_sbd *)data;
 
 	daemonize("gfs_recoverd");
@@ -141,7 +138,7 @@
 
 	complete(&sdp->sd_thread_completion);
 
-	RETURN(GFN_RECOVERD, 0);
+	return 0;
 }
 
 /**
@@ -155,7 +152,6 @@
 int
 gfs_logd(void *data)
 {
-	ENTER(GFN_LOGD)
 	struct gfs_sbd *sdp = (struct gfs_sbd *)data;
 	struct gfs_holder ji_gh;
 
@@ -190,7 +186,7 @@
 
 	complete(&sdp->sd_thread_completion);
 
-	RETURN(GFN_LOGD, 0);
+	return 0;
 }
 
 /**
@@ -202,7 +198,6 @@
 int
 gfs_quotad(void *data)
 {
-	ENTER(GFN_QUOTAD)
 	struct gfs_sbd *sdp = (struct gfs_sbd *)data;
 	int error;
 
@@ -240,7 +235,7 @@
 
 	complete(&sdp->sd_thread_completion);
 
-	RETURN(GFN_QUOTAD, 0);
+	return 0;
 }
 
 /**
@@ -252,7 +247,6 @@
 int
 gfs_inoded(void *data)
 {
-	ENTER(GFN_INODED)
 	struct gfs_sbd *sdp = (struct gfs_sbd *)data;
 
 	daemonize("gfs_inoded");
@@ -275,5 +269,5 @@
 
 	complete(&sdp->sd_thread_completion);
 
-	RETURN(GFN_INODED, 0);
+	return 0;
 }
gfs-kernel/src/gfs/daemon.h +1 -1
@@ -2,7 +2,7 @@
 *******************************************************************************
 **
 **  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
-**  Copyright (C) 2004 Red Hat, Inc.  All rights reserved.
+**  Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
 **
 **  This copyrighted material is made available to anyone wishing to use,
 **  modify, copy, or redistribute it subject to the terms and conditions
gfs-kernel/src/gfs/dio.c +46 -117

643 lines not on this page · raw message

gfs-kernel/src/gfs/dio.h +1 -1
@@ -2,7 +2,7 @@
 *******************************************************************************
 **
 **  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
-**  Copyright (C) 2004 Red Hat, Inc.  All rights reserved.
+**  Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
 **
 **  This copyrighted material is made available to anyone wishing to use,
 **  modify, copy, or redistribute it subject to the terms and conditions
gfs-kernel/src/gfs/dir.c +131 -170

847 lines not on this page · raw message

gfs-kernel/src/gfs/dir.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/eaops.c +28 -34

62 lines not on this page · raw message

gfs-kernel/src/gfs/eaops.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/eattr.c +114 -167

281 lines not on this page · raw message

gfs-kernel/src/gfs/eattr.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/file.c +16 -22

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/file.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/fixed_div64.h +1 -2

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/format.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/gfs.h +17 -3

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/gfs_ioctl.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/gfs_ondisk.h +4 -162

166 lines not on this page · raw message

gfs-kernel/src/gfs/glock.c +88 -232

320 lines not on this page · raw message

gfs-kernel/src/gfs/glock.h +4 -4

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/glops.c +12 -67

79 lines not on this page · raw message

gfs-kernel/src/gfs/glops.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/incore.h +13 -3

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/inode.c +130 -174

304 lines not on this page · raw message

gfs-kernel/src/gfs/inode.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/ioctl.c +137 -163

300 lines not on this page · raw message

gfs-kernel/src/gfs/ioctl.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/lm.c +84 -335

419 lines not on this page · raw message

gfs-kernel/src/gfs/lm.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/log.c +31 -72

103 lines not on this page · raw message

gfs-kernel/src/gfs/log.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/lops.c +32 -138

170 lines not on this page · raw message

gfs-kernel/src/gfs/lops.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/lvb.c +1 -21

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/lvb.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/main.c +17 -63

80 lines not on this page · raw message

gfs-kernel/src/gfs/mount.c +21 -14

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/mount.h +2 -2

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/ondisk.c +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/ops_address.c +35 -54

89 lines not on this page · raw message

gfs-kernel/src/gfs/ops_address.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/ops_dentry.c +4 -5

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/ops_dentry.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/ops_export.c +26 -33

59 lines not on this page · raw message

gfs-kernel/src/gfs/ops_export.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/ops_file.c +74 -115

189 lines not on this page · raw message

gfs-kernel/src/gfs/ops_file.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/ops_fstype.c +356 -538

894 lines not on this page · raw message

gfs-kernel/src/gfs/ops_fstype.h +2 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/ops_inode.c +54 -80

134 lines not on this page · raw message

gfs-kernel/src/gfs/ops_inode.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/ops_super.c +37 -35

72 lines not on this page · raw message

gfs-kernel/src/gfs/ops_super.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/ops_vm.c +6 -12

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/ops_vm.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/page.c +10 -24

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/page.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/quota.c +41 -71

112 lines not on this page · raw message

gfs-kernel/src/gfs/quota.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/recovery.c +33 -53

86 lines not on this page · raw message

gfs-kernel/src/gfs/recovery.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/rgrp.c +69 -160

229 lines not on this page · raw message

gfs-kernel/src/gfs/rgrp.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/super.c +55 -85

140 lines not on this page · raw message

gfs-kernel/src/gfs/super.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/trans.c +10 -28

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/trans.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/unlinked.c +5 -35

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/unlinked.h +1 -1

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/util.c +30 -97

127 lines not on this page · raw message

gfs-kernel/src/gfs/util.h +1 -13

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.