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

Debian 8 and Mageia 5 RC Released Over the Weekend

What an exciting weekend that just passed. First up, the long-awaited Debian GNU/Linux 8.0 "Jessie" was released in live and traditional installation media. Elsewhere, Mageia 5 Release Candidate was released with UEFI support and other installation improvements. In addition, LibreOffice 4.3.7 was released Saturday as well. Read more

2016 might just be the year of Linux on the (virtual) desktop

Come November, some “pundit” will declare that next year is the year of Linux on the desktop. This November, expect a twist on that prediction, as 2016 could just perhaps conceivably be the year of virtual Linux desktops now that Citrix has taken kit capable of delivering it into Beta. That kit is called the “Linux Virtual Desktop Tech Preview” and can be had here if you're a XenApp or XenDesktop customer with an active Subscription Advantage account. Citrix Partners can get it too. Read more

Microsoft & Education: The Song Remains the Same

One of our hardware donors emailed me and asked if I would come to Austin and pick up a dozen Optiplex 745s with 17 inch monitors and accompanying keyboards. These Dells already had scrubbed drives and had either 4 or 8 GB of RAM, depending on what they were originally assigned to do. I said I most certainly would and arranged a time to be there. This donor has been especially generous to us, and not with just decent hardware. They also present us an annual Christmas cash donation of $1000. On the years they do employee matching, it is more than that — a lot more. Read more

Today in Techrights