Unionfs: support incremental versions
authorErez_Zadok <ezk@cs.sunysb.edu>
Sun, 18 Nov 2007 22:37:25 +0000 (17:37 -0500)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:03:02 +0000 (19:03 -0400)
Also: release Unionfs 2.1 (since code has gotten much more stable since 2.0)

Unionfs will now report its precise version number and the kernel it was
meant for, upon module loading.  This is useful for maintenance purposes:
users can report the precise release number of Unionfs, and it also helps
prevent running older versions when newer ones are intended, or mixing
versions among supported kernels.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/Makefile
include/linux/union_fs.h

index dfbde56e048671f47b4dcc15535534c79fde5276..200b66a3bad436a30380ad7f6f100f52251bdf91 100644 (file)
@@ -1,3 +1,7 @@
+UNIONFS_VERSION="2.1-odf (for 2.6.23-rc1)"
+
+EXTRA_CFLAGS += -DUNIONFS_VERSION=\"$(UNIONFS_VERSION)\"
+
 obj-$(CONFIG_UNION_FS) += unionfs.o
 
 unionfs-y := subr.o dentry.o file.o inode.o main.o super.o \
index f311d033f26dadbc81e5f6bf387ae4436f9fa6c1..be4031af82a2c2b927895948ac6f3cc61b3e19bd 100644 (file)
@@ -12,7 +12,6 @@
 #ifndef _LINUX_UNION_FS_H
 #define _LINUX_UNION_FS_H
 
-#define UNIONFS_VERSION  "2.0"
 /*
  * DEFINITIONS FOR USER AND KERNEL CODE:
  */