# [PATCH] Adapt to fuse in kernel 2.6.17

5 messages from 2006-11-12 to 2006-11-12. Participants: Robin Rosenberg, Junio C Hamano, Jeff Garzik.
Thread: https://gitlist.dev/t/43283

## Robin Rosenberg, 2006-11-12 18:45

Subject: [PATCH] Adapt to fuse in kernel 2.6.17
Message-ID: <20061112184519.8713.7707.stgit@lathund.dewire.com>
URL: https://gitlist.dev/e/20061112184519.8713.7707.stgit%40lathund.dewire.com

```
From: Robin Rosenberg <robin.rosenberg@dewire.com>


---

 Makefile   |    2 +-
 api-fuse.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 8668a03..e80661f 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ GITCFLAGS = '-DSHA1_HEADER=<openssl/sha.
 GITLDFLAGS = $(GITDIR)/libgit.a -lcrypto -lz
 
 # What flags are required to build against FUSE
-FUSECFLAGS = '-DFUSE_HEADER="/usr/src/linux-2.6.14.4/include/linux/fuse.h"'
+FUSECFLAGS = '-DFUSE_HEADER="/usr/src/linux-2.6.17-5mdv/include/linux/fuse.h"'
 
 OBJS = gitobj.o api-fuse.o gnode.o topdir.o util.o tagdir.o autotree.o \
        gitdir.o main.o worktree.o openfile.o gitworker.o rbtree.o pcbuf.o \
diff --git a/api-fuse.c b/api-fuse.c
index aba5088..28c5da0 100644
--- a/api-fuse.c
+++ b/api-fuse.c
@@ -146,7 +146,7 @@ struct fuse_out {
 		struct fuse_write_out write;
 		struct fuse_statfs_out statfs;
 		struct fuse_getxattr_out getxattr;
-		struct fuse_init_in_out init;
+		struct fuse_init_in init;
 		char read[0];
 	} arg;
 };
@@ -307,7 +307,7 @@ struct fuse_in {
 			struct fuse_getxattr_in chdr;
 			char name[0];
 		} getxattr;
-		struct fuse_init_in_out init;
+		struct fuse_init_in init;
 		/*
 		 * lookup, unlink, rmdir, and removexattr just take a
 		 * string; no per-command header.  symlink takes two
@@ -980,7 +980,7 @@ enum service_result api_service_poll(voi
 {
 	union {
 		struct fuse_in f;
-		unsigned char storage[FUSE_MAX_IN];
+		unsigned char storage[FUSE_MIN_READ_BUFFER];
 	} in;
 	int rv = read(fuse_fd, in.storage, sizeof(in.storage));

```

## Robin Rosenberg, 2006-11-12 18:56

Subject: Re: [PATCH] Adapt to fuse in kernel 2.6.17
Message-ID: <200611121956.25481.robin.rosenberg.lists@dewire.com>
URL: https://gitlist.dev/e/200611121956.25481.robin.rosenberg.lists%40dewire.com
In-Reply-To: <20061112184519.8713.7707.stgit@lathund.dewire.com>

```

This was a patch to GITFS, which may be somewhat unclear from the Subject 
line :)


```

## Jeff Garzik, 2006-11-12 19:31

Subject: Re: [PATCH] Adapt to fuse in kernel 2.6.17
Message-ID: <455776A7.6050707@garzik.org>
URL: https://gitlist.dev/e/455776A7.6050707%40garzik.org
In-Reply-To: <200611121956.25481.robin.rosenberg.lists@dewire.com>

```
Robin Rosenberg wrote:
> This was a patch to GITFS, which may be somewhat unclear from the Subject 
> line :)

I blinked, and I missed it.  Where can I find gitfs?  I've long thought 
about doing something like that myself.

	Jeff



```

## Junio C Hamano, 2006-11-12 19:43

Subject: Re: [PATCH] Adapt to fuse in kernel 2.6.17
Message-ID: <7vslgobgcg.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vslgobgcg.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <455776A7.6050707@garzik.org>

```
Jeff Garzik <jeff@garzik.org> writes:

> Robin Rosenberg wrote:
>> This was a patch to GITFS, which may be somewhat unclear from the
>> Subject line :)
>
> I blinked, and I missed it.  Where can I find gitfs?  I've long
> thought about doing something like that myself.

http://git.or.cz/gitwiki/InterfacesFrontendsAndTools lists it at

http://www.sfgoth.com/~mitch/linux/gitfs/

Fuse seems to be fun.

```

## Robin Rosenberg, 2006-11-12 20:01

Subject: Re: [PATCH] Adapt to fuse in kernel 2.6.17
Message-ID: <200611122101.28910.robin.rosenberg.lists@dewire.com>
URL: https://gitlist.dev/e/200611122101.28910.robin.rosenberg.lists%40dewire.com
In-Reply-To: <455776A7.6050707@garzik.org>

```
söndag 12 november 2006 20:31 skrev Jeff Garzik:
> Robin Rosenberg wrote:
> > This was a patch to GITFS, which may be somewhat unclear from the Subject
> > line :)
>
> I blinked, and I missed it.  Where can I find gitfs?  I've long thought
> about doing something like that myself.

It's listed on the wiki and located at 
http://www.sfgoth.com/~mitch/linux/gitfs/


```
