fuse

Fuse bindings for php.

I am writing an application that thus far has been written in PHP, from the interface to the daemons. I have a need to use fuse and would like to continue to use PHP just for consistency. However, there doesn't seem to be bindings for PHP. Python, Java etc have bindings, and I can code in those languages I just dont want the additional d...

Why is fuse not using the class supplied in file_class

I have a python fuse project based on the Xmp example in the fuse documentation. I have included a small piece of the code to show how this works. For some reason get_file does get called and the class gets created, but instead of fuse calling .read() on the class from get_file (file_class) fuse keeps calling Dstorage.read() which defeat...

Read header data from files on remote server

Hi! I'm working on a project right now where I need to read header data from files on remote servers. I'm talking about many and large files so I cant read whole files, but just the header data I need. The only solution I have is to mount the remote server with fuse and then read the header from the files as if they where on my local c...

sshfs EBCDIC to ASCII

Hi all, what I want to do is to be able to mount via sshfs some files on the mainframe via USS on my local PC. I can do that but sshfs doesnt do straight off the conversion from EBCDIC to ascii/unicode. Is there any flags that i can set. Alternativly, does anybody know of a library that does EBCDIC to ASCII conversions so i can add to...

How do I uncompress a file compressed with fusecompress/lzo?

I had mounted a fusecompress of directory compressed/ at fusecompress/ I copied a large file (several GB) to the fusecompress directory (ok, I mv'd it). The compressed file in the directory compressed/ is length 1,221,396,660. However, I cannot remove/uncompress the file. fusecompress has a memory error: "Cannot allocate memory". Is the...

Mount a remote file system using SSHFS

Ok, the setup is a bit convoluted. Don't blame me, I'm not the sysadmin. Here's the situation. There is one machine that I can SSH into from outside the network. I can only remote in as root (yes, you heard right) using my private key. I know that it is more typical to log in as a user and then elevate privileges, but in this case, I ha...

Servicemix 4, DOSGi, and Zookeeper

This is cross posted from the fusesource forum and the servicemmix forum. I can't get DOSGi working in FUSE. I'm trying to get CXF's DOSGi 1.1-SNAPSHOT with Zookeeper discovery onto FUSE 4.1.0.2. I'm also using Zookeepr 3.2.1. Everything works perfectly on Felix 2.0.0. I just follow the instructions on the DOSGi Discovery page an...

Fuse Filesystem Problem

Hi, i'm developing a fuse filesystem that stores data in the RAM, but i'm having problems when i write something to a file. The file turns into a blank file. Here's the code: #define FUSE_USE_VERSION 26 #include <fuse/fuse.h> #include <string.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> char hello_data[200] = {'h', 'e...

How to register FUSE filesystem type with mount(8) and fstab?

I've written a small FUSE-based filesystem and now the only part's missing is that I want to register it with fstab(5) to auto-mount it on system startup and/or manually mount it with just mount /srv/virtual-db. How can I achieve this? I know, I can just run /usr/bin/vdbfs.py /srv/virtual-db from some init script, but that's not exactly...

Linux block device simulation & Fuse

Hello everyone My project involves simulating a block device by remote host. For testing I am using FUSE, my file system is a simple change of the "hello" example app, where instead of returning a constant string I just read data directly from a file. When I try to mount the file normally (mount -o loop=/dev/loop1 ) it works well. Wh...

Ideas for implementing a VFS

Hi all, I have multimedia files and its metadata stored in a RDBMS (actually, the actual media files are stored in the FS, but let's not dwell on that). I would like to present a filesystem view of this information, so that users can work using Windows Explorer and similar stuff on the database. I intend this access to be read-only, wh...

Reading Superblock into a C Structure

I have a disk image which contains a standard image using fuse. The Superblock contains the following, and I have a function read_superblock(*buf) that returns the following raw data: Bytes 0-3: Magic Number (0xC0000112) 4-7: Block Size (1024) 8-11: Total file system size (in blocks) 12-15: FAT length (in blocks) 16-...

How to debug FUSE filesystem crash in Linux

Currently I am developing an application using FUSE filesystem module in Linux (2.6 Kernel) in C language. Due to some programming error, the application crashes after mounting the filesystem. Since I am a novice developer in Linux/C environment. Could you please let me tell me possible options to debug such programs? ...

Apache Camel 2.x and Servicemix 3.x/4

I'm trying to run Camel 2.1 SU with Servicemix. As i understand there are no way to run Camel 2 with Servicemix 3, and i'm try to run it with FUSE Servicemix 4.0.0.1 When i starting my project with maven: mvn jbi:servicemix i receive following error: unexpected element (uri:"http://camel.apache.org/schema/spring", local:"camelContext")...

Implementing FUSE

I want to implement a file system using FUSE. When the contents of the directory is requested, only the types of files in that directory will be reported as subdirectories. For example, if there are ugur.PDF, guler.JPG and devatate.PNG files in the directory, the files themselves will not be reported, but types (PDF, JPG and PNG) will be...

Fuse Filesystem

Help me please... I don't know to do. This error: error: invalid conversion from ‘int (*)(const char*, fuse_file_info*)’ to ‘int (*)(const char*, int)’ when i do static struct fuse_operations vkfs_opers; ... vkfs_opers.open = vkfs_open; but function declarated as static int vkfs_open(const char *path, struct fuse_file_info *fi...

What is a Virtual file system or a file system in userspace?

I just came across a VFS and a filesystem in userspace like FUSE. Now, as far as I understand, it simulates a file system, so that an application can have a standard file system hierarchy. But I don't understand, why do we need a separate file system for that? Can't we just create a regular folder structure and place files which will be...

Handling of data truncation (short reads/writes) in FUSE

I expect any good program should do all their reads and writes in a loop until all data written/read without relying that write will write everything (even with regular files). Am I right? Implemented simple FUSE filesystem which only allows reading and writing with small buffers, very often returning that it is written less bytes that ...

How to trap a copy/move-file operation in a custom filesystem based on Fuse?

I`m implementing a custom filesystem on Ubuntu using Fuse, but I need to trap when a copy or move operation occur. Right now all I see are when some file are opened for writing or reading, but I need to see these operations in context so I can see what file are being copied or moved. Any hints? ...

How to access username principle in a cxf-se with ws-security?

I finally got the Ws-Security working with CXF-BC & CXF-SE combination. I'm now trying to access the username from the soap header in the SE to check permission and ownership of the user calling a operation, but there seems to be no way of doing that. I know that once a message get passed from the BC to the SE, it just takes the SOAP b...