Code Monkey home page Code Monkey logo

nilfs-test-tools's Introduction

* Required packages

 - nilfs-utils or nilfs-tools
 - core-utils, util-linux, procps-ng (pgrep), gawk

* Usage

Currently only test-nilfs-mount.sh is available to test vairous NILFS
mount patterns.

In the following example, the block device on which the file system
will be placed is /dev/vdb1.

 $ sudo mkfs -t nilfs2 /dev/vdb1
 $ sudo ./test-mount.sh -d /dev/vdb1 /mnt/test /mnt/snapshot
 .
 .
 Preparation complete - once unmount /mnt/test
 === Start test_1: mount (rw) & umount
 - mount -t nilfs2 /dev/vdb1 /mnt/test
 - umount /mnt/test
 test_1 succeeded.
 === Start test_2: mount (ro) & umount
 - mount -t nilfs2 -r /dev/vdb1 /mnt/test
 - umount /mnt/test
 test_2 succeeded.
 === Start test_3: mount (nogc) & umount
 - mount -t nilfs2 -o nogc /dev/vdb1 /mnt/test
 - umount /mnt/test
 test_3 succeeded.
 .
 .
 .
 === Start test_16: mount (rw) & snapshot mount & umount (rw) & umount (snapshot)
 - mount -t nilfs2 /dev/vdb1 /mnt/test
 - mount -t nilfs2 -o ro,cp=38866 /dev/vdb1 /mnt/snapshot
 - umount /mnt/test
 - umount /mnt/snapshot
 test_16 succeeded.
 === Start test_17: mount (snapshot) & mount (rw) && mount (remount, ro) & umount (snapshot) & umount (ro)
 - mount -t nilfs2 -o ro,cp=38866 /dev/vdb1 /mnt/snapshot
 - mount -t nilfs2 /dev/vdb1 /mnt/test
 - mount -t nilfs2 -o remount,ro /dev/vdb1 /mnt/test
 - umount /mnt/snapshot
 - umount /mnt/test
 test_17 succeeded.
 Done all tests.

If the script fails during execution, it will print an error message
and abort.

* How to get this sources

 $ cd your-work-directory
 $ git clone https://github.com/konis/nilfs-test-tools.git

* Developer's notes

The central resource for nilfs-utils development is the mailing list
([email protected]).

nilfs-test-tools's People

Contributors

konis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.