Language Selection

English French German Italian Portuguese Spanish

Hoist your applications with petardfs

Filed under
Software

The petard filesystem is designed to produce only errors -- but you can stipulate what conditions generate the errors and what those errors should be. That makes petardfs useful for system and unit testing -- for example, making sure that an application gives a sane error message if it fails to open a file, or if there is a read error at byte 5000 of a file.

Petardfs uses Filesystem in Userspace (FUSE) to allow easy setup without requiring a kernel recompile or new kernel modules. In normal configuration you specify a "base filesystem" and give a mountpoint -- for example, saying that /home/ben/foo is the base filesystem and mounting the filesystem at /home/ben/petard-foo. Without any other configuration, any files in foo will be available in petard-foo unchanged. Petardfs uses an XML configuration file to tell which files to report errors for and what error code to use. For example, foo.txt can have an EIO error at bytes 34 to 37.

Building and installation of petardfs follows the conventional configure, make, make install procedure.

More Here




More in Tux Machines

Firefox gets preliminary support for casting to Chromecast

Mozilla is in the process of adding the ability to “cast” videos from Firefox to Chromecast devices, and you can try it now if you have the right hardware. As announced in a post on Google+ post by Mozilla developer Lucas Rocha, “Chromecast support is now enabled in Firefox for Android’s Nightly build.” To check this out, I downloaded the latest Firefox Nightly, installed it on my Nexus 10, and tested it with my Chromecast. It worked… although, it has some rough edges right now. Read more

SparkyLinux GameOver Is a Winning Work-Play Combo

This SparkyLinux game edition builds in access to a large collection of popular games compiled for the Linux platform. It brings the latest game fare via the Steam and Desura platforms. It provides handy access from a quick launch bar to a dozen plus emulators to let you run top-line games from leading gaming boxes and platforms. GameOver does not wimp out on providing all of the needed everyday computing tools found in other Linux distros, either. It provides nearly all of the standard Linux applications out-of-the-box, so you do not have to install them on your own. Read more

WebKitGTK+ 2.5.2 Drops GTK+2 Dependency

WebKitGTK+, a version of the WebKit open source web engine that uses GTK+ as its user-facing frontend, has reached version 2.5.2. Read more

today's leftovers