Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Laupretre committed May 7, 2014
2 parents 5624f5f + e1f6a76 commit f56c0a5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@

INSTALL_DIR = /opt/sysfunc

SOFTWARE_VERSION = 1.26.0
SOFTWARE_VERSION = 1.26.1

#============================================================================
20 changes: 15 additions & 5 deletions src/sf_disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,21 @@ function sf_disk_rescan
{
typeset i

[ "`uname -s`" = Linux ] || sf_unsupported sf_disk_rescan

for i in /sys/class/scsi_host/host*/scan ; do
echo "- - -" >$i
done
case "`uname -s`" in
Linux)
# Use two mechanisms because 1st one does not see disk resizes on a
# VM in RHEL 6.
for i in /sys/class/scsi_host/host*/scan ; do
echo "- - -" >$i
done
for i in /sys/class/scsi_device/*/device/rescan ; do
echo 1 >$i
done
;;
*)
sf_unsupported sf_disk_rescan
;;
esac
}

#=============================================================================
8 changes: 4 additions & 4 deletions src/sf_fs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

function sf_has_dedicated_fs
{
sf_fs_is_dedicated $*
sf_fs_is_mount_point $*
}

##----------------------------------------------------------------------------
Expand Down Expand Up @@ -68,7 +68,7 @@ function sf_fs_is_mount_point

function sf_get_fs_mnt
{
sf_fs_get_mnt $*
sf_fs_mount_point $*
}

##----------------------------------------------------------------------------
Expand Down Expand Up @@ -111,7 +111,7 @@ esac

function sf_get_fs_device
{
sf_fs_get_device $*
sf_fs_device $*
}

##----------------------------------------------------------------------------
Expand Down Expand Up @@ -297,7 +297,7 @@ owner=$4
[ -z "$type" ] && type=`sf_fs_default_type`
[ -z "$owner" ] && owner=root

sf_fs_is_dedicated $mnt && return 0
sf_fs_is_mount_point $mnt && return 0
sf_msg1 "$mnt: Creating file system..."

if [ -d $mnt ] ; then # Securite
Expand Down

0 comments on commit f56c0a5

Please sign in to comment.