hurdextras-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

adding jfs to hurdextras


From: Manuel Menal
Subject: adding jfs to hurdextras
Date: Mon, 10 Apr 2006 01:01:12 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)

Hello,

You've received this mail because you are the author of the jfs
translator for GNU/Hurd. As you might know, there is a repository where we
put software that was developed for GNU/Hurd but is not included in the
Hurd source code : <http://sv.gnu.org/projects/hurdextras/>.
I think PITH should be added to that repository so that other hackers
can see and modify the code. Are you OK with this ?

The hurdextras policy is that patches should only be committed with the
author's agreement, if they are still interested in reviewing patches.
Are you still interested in reviewing patches for jfs ? We could add
you as a project member and notify you when patches against jfs are
submitted.

In case you are, here is a minor patch to make jfs compile with the new
libpager :

2006-01-21  Manuel Menal  <address@hidden>

        * Makefile.am: add -D_FILE_OFFSET_BITS=64.
        * pager.c: convert to new interface.

diff -urp orig/jfs/Makefile.am jfs/Makefile.am
--- orig/jfs/Makefile.am        2002-12-03 13:57:54.000000000 +0100
+++ jfs/Makefile.am     2006-01-15 12:12:28.000000000 +0100
@@ -4,7 +4,7 @@ bin_PROGRAMS = jfs
 jfs_LDADD = -lthreads -ldiskfs -lpager -lstore -liohelp -lfshelp \
 -lports -lihash -lshouldbeinlibc

-CPPFLAGS += -D_GNU_SOURCE
+CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64

 CFLAGS += -Wall -g -O2

diff -urp orig/jfs/pager.c jfs/pager.c
--- orig/jfs/pager.c    2002-11-25 16:43:58.000000000 +0100
+++ jfs/pager.c 2006-01-08 14:20:41.000000000 +0100
@@ -60,7 +60,7 @@ diskfs_get_filemap (struct node *np, vm_
        upi->np = np;
        diskfs_nref_light (np);
        upi->p = pager_create (upi, pager_bucket,
-                              1, MEMORY_OBJECT_COPY_DELAY);
+                              1, MEMORY_OBJECT_COPY_DELAY, 0);
        if (upi->p == 0)
          {
            diskfs_nrele_light (np);
@@ -155,7 +155,7 @@ create_disk_pager (void)
   upi->type = DISK;
   upi->np = 0;
   pager_bucket = ports_create_bucket ();
-  diskfs_start_disk_pager (upi, pager_bucket, 1, store->size,
+  diskfs_start_disk_pager (upi, pager_bucket, 1, 0, store->size,
                           &disk_image);
   upi->p = diskfs_disk_pager;
 }
@@ -343,3 +343,11 @@ pager_write_page (struct user_pager_info
   assert (0);
 }

+void
+pager_notify_evict (struct user_pager_info *pager,
+                   vm_offset_t page)
+{
+  assert (!"unrequested notification on eviction");
+}
+
+

Thanks a lot in advance,

--
Manuel Menal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]