Twirl mount-umount


author

AuthorVersionCopyright
Takenaka Kazuhiro & Kenichi Okuyama 1.1 GPL v2.0

target

file system.

invalidity

File system mount/umount may not work properly under heavy load.

symptom

File system mount/umount may cause dead lock or starvation, when being held very rapidly.

detection strategy

Keep running mount and umount. If there is no problem, this should run for ever. If not, this should cause some deadlock.

tools

1.1 is now available.

measurement results

No result yet.

Documents

history

version date author
log
1.1 2005/10/14 Kenichi Okuyama
  • bug fixed. (Kenichi Okuyama)
    Vesion 1.0 was something like this:
    >> mount /dev/sda8 /mnt/sda8
    >> umount /dev/sda9
    umount should be unmounting /dev/sda8, not "9".
    New scipt now does something like following:
    mount $DEVICE $DIRECTORY
    umount $DEVICE
    This way, umount will unmount device which was mounted.
  • changed filename. (Kenichi Okuyama)
    Vesion 1.0 was originally named "repeat_mount.1.0.sh". I've change the name of the script to "repeat_mount-umount.sh".
  • mounting DEVICE, mounting directory, file system type now referes envionment vaiable. (Kenichi Okuyama)
    New script now check environment variable.
    DEVICE
    name of the device to mount.
    DIRECTORY
    path where to mount to.
    Also:
    FSTYPE
    define filesystem type name to mount
    LOOPLIMIT
    instead of infinite loop of mount/umount, it only loops upto counted value.
  • help() function added. (Kenichi Okuyama)
    If DEVICE o DIRECTORY environment variables were not being defined, help() will be called, describing help message.
  • mount/umount loop now can be stopped after specific count. If LOOPLIMIT environment variable is defined, mount/umount loop should stop afte LOOPLIMIT counts. (Kenichi Okuyama)
  • status message is available. (Kenichi Okuyama)
    They look like this: DEVICE = "/dev/sda8"
    DIRECTORY= "/mnt/sda8"
    FSTYPE = ""
    LOOPLIMIT= "20"
    1-th tun: mounting/mount retuned 0: umounting/umount retuned 0
    2-th tun: mounting/mount retuned 0: umounting/umount retuned 0
    :
    This is to find where did the script stopped.
    case 1) while running mount
    Message will stop like this:
    2-th turn: mounting/
    case 2) while running umount
    Message will stop like this:
    2-th turn: mounting/mount retuned 0: umounting/
    default) Something odd must have happened to you script or shell:
    2-th turn:
    2-th turn: mounting/mount retuned 0:
  • Added ChangeLog file ( this file ). (Kenichi Okuyama)
  • Added 00Readme file fo explaining what this is. (Kenichi Okuyama)
  • GPL 2.0 file added. (Kenichi Okuyama)
  • Clarified copyight at the beginning of the script comment as GPL 2.0. (Kenichi Okuyama)
  • repeat_mount.sh (Kenichi Okuyama)
    script which only does mount forever. added.
  • repeat_umount.sh (Kenichi Okuyama)
    script which only does umount forever. added.
  • Environment Variable MOUNT, and UMOUNT are now referred for describing mount and umount program. If unset, first program 'mount' and 'umount' on PATH will be used. (Kenichi Okuyama)
1.0 2005/09/21 (Well! Happy Birthday! Takenaka-san) Kazuhiro Takenaka
First version.