Whamcloud - gitweb
For some reason extN complains about "ntohl" not being exported, so rather
authoradilger <adilger>
Wed, 8 May 2002 19:49:37 +0000 (19:49 +0000)
committeradilger <adilger>
Wed, 8 May 2002 19:49:37 +0000 (19:49 +0000)
than fix that I changed it to be "be32_to_cpu()" which is equivalent.  When
I get a chance I will look into this.

lustre/extN/extN-misc-fixup.diff [new file with mode: 0644]

diff --git a/lustre/extN/extN-misc-fixup.diff b/lustre/extN/extN-misc-fixup.diff
new file mode 100644 (file)
index 0000000..29b36fb
--- /dev/null
@@ -0,0 +1,15 @@
+--- linux-2.4.17/fs/extN/super.c.orig  Fri Dec 21 10:41:55 2001
++++ linux-2.4.17/fs/extN/super.c       Fri Mar 22 11:00:41 2002
+@@ -1344,10 +1342,10 @@
+               printk(KERN_ERR "EXTN-fs: I/O error on journal device\n");
+               goto out_journal;
+       }
+-      if (ntohl(journal->j_superblock->s_nr_users) != 1) {
++      if (be32_to_cpu(journal->j_superblock->s_nr_users) != 1) {
+               printk(KERN_ERR "EXTN-fs: External journal has more than one "
+                                       "user (unsupported) - %d\n",
+-                      ntohl(journal->j_superblock->s_nr_users));
++                      be32_to_cpu(journal->j_superblock->s_nr_users));
+               goto out_journal;
+       }
+       EXTN_SB(sb)->journal_bdev = bdev;