MoDisco Use Case - Unix File System

MoDisco Logo

Keywords

Unix, File System, Bash


Overview

This use case is about discovering the file tree of a Unix system and building a model representing it. The model produced conforms to a very simple Unix file system metamodel (which is described and provided in the Download section).

This use case is provided by INRIA AtlanMod and its development is being supported by the IST European MODELPLEX project (MODELing solution for comPLEX software systems, FP6-IP 34081).

The overall approach is summarized in the following figure:



"Unix File System" Use Case's Overview

The discoverer is named UnixFSDiscoverer. It is a hand-written Bash script which has been developped focusing on the metamodel. It uses a set of basic command line tools available on any Unix system. The created model conforms to the UnixFS metamodel.

We defined this metamodel for simply describing the Unix file system. It only contains basic concepts of file systems such as TextFile and DirectoryFile (as everything is a File in Unix systems). Each File has a name, an owner and a group. Finally, a directory can contains files (i.e. textual files or directories). This metamodel is available at the Download section.

We provide below a short excerpt, representing the /etc files list of a standard Unix distribution, of a model (in Ecore format) created by using this discoverer:



Excerpt (representing the /etc files list of a standard Unix distribution) of a model produced by the discoverer


Related Use Cases

None at the current time.


Documentation

Choose a document

UnixFSDiscoverer Installation & User Guide: How to install and use the discoverer for building file tree models from Unix file system's paths.
Not available

Download

Choose a download

Due to IP restrictions, the prototype is not currently available from Eclipse.org.

General Information