Skip to contentSkip to conversation

Is this a good use for FUSE?

DISCUSSION Charles Manning 2 participants 2 messages May 25, 2006 – May 29, 2006 VFS

lore
Share & tools
lore
#0 lore raw

I'm thinking of using fuse to build a test harness for YAFFS and thought I'd ask opinions before I went ahead.

YAFFS is pretty modular in that the OS-specific functions (VFS and mtd interfacing) can be unplugged and replaced with other functions. This allows the core "guts" to be built and tested in application space.

The pain with doing the testing in an application is that writing test code etc takes a long time. I'd rather be able to do testing interactively from bash etc, which leads to the idea of running YAFFS as a fuse application.

Any comments as to the sanity of this approach?

Can you do things like single step a fuse application without breaking the kernel?

Thanx

-- CHarles

#1 lore raw
Quoted 13 lines

I'm thinking of using fuse to build a test harness for YAFFS and thought I'd ask opinions before I went ahead.

YAFFS is pretty modular in that the OS-specific functions (VFS and mtd interfacing) can be unplugged and replaced with other functions. This allows the core "guts" to be built and tested in application space.

The pain with doing the testing in an application is that writing test code etc takes a long time. I'd rather be able to do testing interactively from bash etc, which leads to the idea of running YAFFS as a fuse application.

Quoted 4 lines

Any comments as to the sanity of this approach?

Can you do things like single step a fuse application without breaking the kernel?

Of course.

Another approach is to use UML, which gives a similar debugging environment but without having to port your filesystem to userspace.

Miklos