1 --- vmblock-only/linux/filesystem.c 2008-08-08 15:27:46.000000000 +0200
2 +++ vmblock-only/linux/filesystem.c 2008-08-08 18:34:57.000000000 +0200
3 @@ -64,7 +64,11 @@ static char const *fsRoot;
4 static size_t fsRootLen;
5 static struct file_system_type fsType = {
7 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
8 .name = VMBLOCK_FS_NAME,
10 + .name = VMBLOCK_FS_NAME_I,
14 .kill_sb = kill_anon_super,
15 @@ -506,8 +510,11 @@ FsOpReadSuper(struct super_block *sb, //
16 rootInode->i_op = &RootInodeOps;
17 rootInode->i_fop = &RootFileOps;
18 rootInode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO;
20 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
21 LOG(4, "%s file system mounted\n", VMBLOCK_FS_NAME);
23 + LOG(4, "%s file system mounted\n", VMBLOCK_FS_NAME_I);
28 --- vmblock-only/include/vmblock.h 2008-08-08 15:27:46.000000000 +0200
29 +++ vmblock-only/include/vmblock.h 2008-08-08 18:37:45.000000000 +0200
31 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
32 # define VMBLOCK_FS_NAME "vmblock"
34 -# define VMBLOCK_FS_NAME "fs/vmblock"
35 +# define VMBLOCK_FS_NAME_I "vmblock"
36 +# define VMBLOCK_FS_NAME "fs/" VMBLOCK_FS_NAME_I
38 /* Commands for the control half of vmblock driver */
42 # define VMBLOCK_LIST_FILEBLOCKS _IO('v', 3)
44 -# define VMBLOCK_MOUNT_POINT "/var/run/" VMBLOCK_FS_NAME
45 +# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
46 +# define VMBLOCK_MOUNT_POINT "/var/run/" VMBLOCK_FS_NAME
48 +# define VMBLOCK_MOUNT_POINT "/var/run/" VMBLOCK_FS_NAME_I
50 # define VMBLOCK_DEVICE VMBLOCK_MOUNT_POINT
51 # define VMBLOCK_DEVICE_MODE O_RDONLY
52 # define VMBLOCK_CONTROL(fd, op, path) ioctl(fd, op, path)