+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
all: perms
perms:
#!/bin/sh
# Script to remove the loopback device and temp file created in newtest.sh
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
OBDDIR="`dirname $0`/.."
. $OBDDIR/demos/config.sh
#! /bin/sh
# Get the locations for the files from a single place to avoid confusion
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
OBDDIR="`dirname $0`/.."
# source config info
# File which holds configuation parameters in a single place to avoid any
# mismatch between scripts (especially the cleanup scripts, which are
# destructive).
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
#set -vx
# Major number for OBD devices
#!/bin/sh
# Utility script for cleaning up a simple OBDFS mounted filesystem
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
OBDDIR="`dirname $0`/.."
. $OBDDIR/demos/config.sh
#! /bin/bash
# Utility script for configuring a simple OBDFS mount
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
OBDDIR="`dirname $0`/.."
. $OBDDIR/demos/config.sh
# Utility script to create an OBD snapshot. If an existing filesystem is
# not already mounted on /mnt/obd, we call the basic OBD setup script to
# create and mount a filesystem for us.
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
OBDDIR="`dirname $0`/.."
. $OBDDIR/demos/config.sh
#!/bin/sh
# Utility script for cleaning up a third snapshot created by setup3.sh
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
OBDDIR="`dirname $0`/.."
. $OBDDIR/demos/config.sh
#!/bin/sh
# Utility script for creating a third snapshot.
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
OBDDIR="`dirname $0`/.."
. $OBDDIR/demos/config.sh
#! /bin/bash
# Utility script for cleaning up snapshots and removing modules.
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
OBDDIR="`dirname $0`/.."
. $OBDDIR/demos/config.sh
#!/bin/sh
# Utility script to test deleting a snapshot that has been previously
# created as the setup.sh script does.
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
OBDDIR="`dirname $0`/.."
. $OBDDIR/demos/config.sh
#!/bin/sh
# Utility script to test restoring a previous snapshot. This will destroy
# the "current" snapshot and restore the old one in its place.
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
OBDDIR="`dirname $0`/.."
. $OBDDIR/demos/config.sh
#! /bin/bash
# Utility script for cleaning up a simple OBDFS mounted filesystem
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
OBDDIR="`dirname $0`/.."
. $OBDDIR/demos/config.sh
# Utility script to create an OBD snapshot. If an existing filesystem is
# not already mounted on /mnt/obd, we call the basic OBD setup script to
# create and mount a filesystem for us.
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
OBDDIR="`dirname $0`/.."
. $OBDDIR/demos/config.sh
#!/bin/sh
# Utility script to perform minor modifications to the read-write mounted
# snapshot in order to demonstrate the changes w.r.t. the read-only snapshot
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
OBDDIR="`dirname $0`/.."
. $OBDDIR/demos/config.sh
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
all .DEFAULT:
$(MAKE) -C ../.. $@
/* object based disk file system
*
- * This software is licensed under the GPL. See the file COPYING in the
- * top directory of this distribution for details.
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
*
* Copyright (C), 1999, Stelias Computing Inc
*
#ifndef __OBD_H
#define __OBD_H
-
+/*
+ * Copyright (C) 2001 Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
struct obd_conn_info {
unsigned int conn_id; /* handle */
#ifndef __LINUX_CLASS_OBD_H
#define __LINUX_CLASS_OBD_H
+/*
+ * Copyright (C) 2001 Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
#include <linux/fs.h>
#include <linux/time.h>
#ifndef _OBD_EXT2
#define _OBD_EXT2
+/*
+ * Copyright (C) 2001 Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
#define OBD_EXT2_RUNIT _IOWR('f', 61, long)
#ifndef _OBD_RAID1
#define _OBD_RAID1
+/*
+ * Copyright (C) 2001 Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
#include <linux/obd_class.h>
#ifndef __OBD_RPC_H
#define __OBD_RPC_H
+/*
+ * Copyright (C) 2001 Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
#include <linux/sunrpc/svc.h>
#define OBD_TGT_VERSION 001
#ifndef _OBD_SNAP
#define _OBD_SNAP
+/*
+ * Copyright (C) 2001 Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
#define OBD_SNAP_MAGIC 0xfffffff3 /* an unlikely block number */
#ifndef __OBD_SNAP_SUPP_H
#define __OBD_SNAP_SUPP_H
+/*
+ * Copyright (C) 2001 Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
/* What we use to point to IDs in the obdmd data for snapshots. If we use
* obd_id (8 bytes) instead of ino_t (4 bytes), we halve the number of
#ifndef _OBD_SUPPORT
#define _OBD_SUPPORT
+/*
+ * Copyright (C) 2001 Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
+
#include <linux/autoconf.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
/*
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ *
* obdtrace (header file) - is useful for tracing and performance
* debug of the Lustre obd protocol stack. obdtrace is a transparent
* logical obd driver that prints commands their in- and outbound
/* object based disk file system
*
- * This software is licensed under the GPL. See the file COPYING in the
- * top directory of this distribution for details.
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
*
* Copyright (C), 1999, Stelias Computing Inc
*
#ifndef OBD_H
#define OBD_H
+/*
+ * Copyright (C) 2001 Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
struct obdfs_inode_info {
int oi_flags;
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
MODULE = obdclass.o
bin_PROGRAMS = obdcontrol
/*
* linux/fs/ext2_obd/sim_obd.c
+ * Copyright (C) 2001 Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
*
* These are the only exported functions; they provide the simulated object-
* oriented disk.
/* proc_lustre.c manages /proc/lustre/obd.
*
+ * Copyright (c) 2001 Rumi Zahir <rumi.zahir@intel.com>
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ *
* OBD devices materialize in /proc as a directory:
* /proc/lustre/obd/<number>
* when /dev/obd<number> is opened. When the device is closed, the
* proc_lustre_remove_obd_entry() removes a
* /proc/lustre/obd/<obdid>/ entry by name. This is the only
* function that is exported to other modules.
- *
- * Copyright (c) 2001 Rumi Zahir <rumi.zahir@intel.com>
*/
#include <linux/config.h>
+/*
+ * Copyright (C) 2001 Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
+
#include <linux/module.h>
#include <linux/autoconf.h>
#include <linux/sysctl.h>
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
MODULE = obdfs.o
CFILES= flushd.c rw.c file.c dir.c sysctl.c super.c namei.c symlink.c
/*
* linux/fs/ext2/dir.c
*
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ *
* Copyright (C) 1992, 1993, 1994, 1995
* Remy Card (card@masi.ibp.fr)
* Laboratoire MASI - Institut Blaise Pascal
/*
* linux/fs/ext2/file.c
*
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ *
* Copyright (C) 1992, 1993, 1994, 1995
* Remy Card (card@masi.ibp.fr)
* Laboratoire MASI - Institut Blaise Pascal
* OBDFS Super operations - also used for Lustre file system
*
*
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ *
* Copyright (C) 1991, 1992 Linus Torvalds
* Copryright (C) 1999 Stelias Computing Inc. <braam@stelias.com>
* Copryright (C) 1999 Seagate Technology Inc.
/*
* linux/fs/obdfs/namei.c
*
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ *
* Copyright (C) 1992, 1993, 1994, 1995
* Remy Card (card@masi.ibp.fr)
* Laboratoire MASI - Institut Blaise Pascal
/*
* OBDFS Super operations
*
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ *
* Copyright (C) 1996, 1997, Olaf Kirch <okir@monad.swb.de>
* Copryright (C) 1999 Stelias Computing Inc,
* (author Peter J. Braam <braam@stelias.com>)
/*
* OBDFS Super operations
*
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ *
* Copryright (C) 1996 Peter J. Braam <braam@stelias.com>
* Copryright (C) 1999 Stelias Computing Inc. <braam@stelias.com>
* Copryright (C) 1999 Seagate Technology Inc.
/*
* linux/fs/ext2/symlink.c
*
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ *
* Copyright (C) 1992, 1993, 1994, 1995
* Remy Card (card@masi.ibp.fr)
* Laboratoire MASI - Institut Blaise Pascal
+/*
+ * Copyright (C) 2001 Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/sysctl.h>
--- /dev/null
+#! /bin/sh
+# license-status - Display the status of files in the current directory
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+#
+# Gordon Matzigkeit <gord@fig.org>, 2001-09-27
+
+for f in `find . -type f | sort`; do
+ case "$f" in
+ *~ | *.orig | *.gz | */config.* | *.o | \
+ */CVS/* | */.cvsignore | */.depfiles/* | \
+ */COPYING | */ChangeLog)
+ continue
+ ;;
+ esac
+
+ if head -20 "$f" | egrep -e 'GNU' > /dev/null; then
+ echo "gpled $f"
+ elif head -20 "$f" | egrep -e '\([Cc]\)' > /dev/null; then
+ echo "copyrighted $f"
+ else
+ echo "bare $f"
+ fi
+done | sort
#!/bin/sh
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
set -vx
rm -f TAGS ; find . -name '*.h' -or -name '*.c' | xargs etags
rm -f ctags; find . -name '*.h' -or -name '*.c' | xargs ctags
#! /bin/sh
# mass_install - Install zero or more files in a directory
# Gordon Matzigkeit <gord@fig.org>, 2001-09-26
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
# Usage: mass_install DIR [FILES...] [OPTS...]
FILES=
#!/bin/sh -x
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
mknod -m 0600 /dev/obd0 c 186 0
mknod -m 0600 /dev/obd1 c 186 1
mknod -m 0600 /dev/obd2 c 186 2
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
# Print OS version
shell uname -r
# Insert Lustre kernel modules
# patch-if-change - Copy FILES to the current directory, apply PATCH,
# and restore timestamps on files that weren't changed.
# Gordon Matzigkeit <gord@fig.org>, 2001-09-25
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
# Usage: patch-if-change [PATCHFLAGS]... PATCH FILES...
PATCHFLAGS=
#! /bin/bash
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
insmod loop
dd if=/dev/zero of=/tmp/fs bs=1024 count=10000
#!/bin/sh
# Utility script to test several features of a snapshot filesystem
# Assumes that snapshot has already been configured
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
OBDDIR="`dirname $0`/.."
. $OBDDIR/demos/config.sh
+/*
+ * Copyright (C) 2001 Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
+
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
+/*
+ * Copyright (C) 2001 Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
+
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>