Changeset 707
- Timestamp:
- 12/01/06 09:50:46 (2 years ago)
- Files:
-
- trunk/mwfetcher/CHANGELOG (modified) (1 diff)
- trunk/mwfetcher/src/mwfetcher (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/mwfetcher/CHANGELOG
r705 r707 1 2006.11.23 2 1. Obsolete ntfs mount option fixed. 1 v0.1.0 2 * Added "-t vfat" option since the vfat file system mount option is not compatible 3 with ntfs or other file system. 4 * Obsolete ntfs mount option fixed. 5 * Refreshed README for public release. 3 6 4 2006.10.185 v0.1.06 1. Refreshed README for public release.7 8 2006.09.149 7 v0.0.9b 10 1.Fixed a bug in function submit_diff.11 2. Removed -t ntfsoption while mount virtual disk to let Liux kernel decide which12 fs type to use, therefore can support more fs type.8 * Fixed a bug in function submit_diff. 9 * Removed "-t ntfs" option while mount virtual disk to let Liux kernel decide which 10 fs type to use, therefore can support more fs type. trunk/mwfetcher/src/mwfetcher
r705 r707 24 24 ############################################################################ 25 25 # 26 # Usage: mwfetcher [-m path] [-l path] [-s path] [-g file] [-f] [-M] vmxfile submit-dir27 # mwfetcher [-M] [-c config-file] -b28 # mwfetcher -i [-m path] [-s path] [-g file] [-M] vmxfile26 # Usage: mwfetcher [-m path] [-l path] [-s path] [-g file] [-f] [-M] [-t vfat] vmxfile submit-dir 27 # mwfetcher [-M] [-c config-file] [-t vfat] -b 28 # mwfetcher -i [-m path] [-s path] [-g file] [-M] [-t vfat] vmxfile 29 29 # mwfetcher -v 30 30 # mwfetcher -h … … 44 44 # -b Use batch mode run through VM list in <config-file>. 45 45 # -i Generate initial good file list for virtual machine <vmxfile> 46 # -t Sepcify the file system type, currently only FAT file system needs to 47 # be specified. 46 48 # 47 49 ########################################################################### … … 68 70 local vmk_dir="$1" 69 71 local mount_dir="$2" 70 local fs_type="$3"71 72 72 73 echo "[MOUNT]" 73 echo "Mount Virtual machine disk: $vmk_dir"74 echo "mount point: $mount_dir"75 74 76 75 if [ -e "$home_dir"PID ]; then 77 echo "$PROGRAM: Another MwFetcher is currently running, only one process is allowed"76 echo "$PROGRAM: Another MwFetcher is currently running, only one process is allowed" 78 77 exit 1 79 78 fi … … 87 86 fi 88 87 89 local vmk_file=`ls -ct "$vmk_dir" | grep -m 1 .vmdk$ | sed '{s/-s00[0-9]//}'` 90 vmware-loop "$vmk_dir/$vmk_file" 1 /dev/nb0 2>&1 > /dev/null & echo $! > "$home_dir/PID" 88 local vmdk_file=`ls -ct "$vmk_dir" | grep -m 1 .vmdk$ | sed '{s/-s00[0-9]//}'` 89 90 echo "Mount Virtual machine disk: $vmk_dir/$vmdk_file" 91 echo "mount point: $mount_dir" 92 93 vmware-loop "$vmk_dir/$vmdk_file" 1 /dev/nb0 2>&1 > /dev/null & echo $! > "$home_dir/PID" 91 94 sleep 2 92 mount -o ro,nls=utf8 /dev/nb0 "$mount_dir" 2>&1 > /dev/null 95 96 local option="" 97 if [ $fs_type = "vfat" ]; then 98 option="utf8" 99 else 100 option="ro,nls=utf8" 101 fi 102 103 mount -o "$option" /dev/nb0 "$mount_dir" 2>&1 > /dev/null 93 104 94 105 #echo "Finished" … … 267 278 268 279 usage() { 269 echo "Usage: $PROGRAM [-m path] [-l path] [-s path] [-g file] [-f] [-M] vmxfile submit-dir"270 echo " $PROGRAM [-M] [-c config-file] -b"271 echo " $PROGRAM -i [-m path] [-s path] [-g file] [-M] vmxfile"280 echo "Usage: $PROGRAM [-m path] [-l path] [-s path] [-g file] [-f] [-M] [-t vfat] vmxfile submit-dir" 281 echo " $PROGRAM [-M] [-c config-file] [-t vfat] -b" 282 echo " $PROGRAM -i [-m path] [-s path] [-g file] [-M] [-t vfat] vmxfile" 272 283 echo " $PROGRAM -v" 273 284 echo " $PROGRAM -h" … … 281 292 echo -e "\t-b Use batch mode run through VM list in <config-file>." 282 293 echo -e "\t-i Generate initial good file list for virtual machine <vmxfile>" 294 echo -e "\t-t Specify the file system type, currently only FAT file system needs to \n\t be specified." 283 295 echo -e "\t-v Version." 284 296 echo -e "\t-h Show this message." … … 345 357 # Process options 346 358 347 while getopts ":m:l:g:s:fMic:b vh" opt; do359 while getopts ":m:l:g:s:fMic:bt:vh" opt; do 348 360 case $opt in 349 361 m ) if [ -d "$OPTARG" ]; then … … 371 383 b ) batch=1 ;; 372 384 385 t ) fs_type="$OPTARG" ;; 386 373 387 v ) version 374 388 exit 0 ;; … … 390 404 cfg_file=${cfg_file:-"$home_dir/config"} 391 405 batch=${batch:-0} 406 fs_type=${fs_type:-""} 392 407 393 408 echo "MwFetcher v$version"
