[Ocfs2-tools-devel] [PATCH] o2cb.init: Reference configfs_path() instead of hardcoded mountpoint

Tao Ma tao.ma at oracle.com
Thu Jul 31 19:11:39 PDT 2008



Joel Becker wrote:
> When unmounting the configfs filesystem, o2cb.init incorrectly
> references a hardcoded path.  It should be using the configfs_path()
> function for backwards compatibility.
> 
> Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
> ---
>  vendor/common/o2cb.init.sh |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/vendor/common/o2cb.init.sh b/vendor/common/o2cb.init.sh
> index 810b004..e0307bf 100644
> --- a/vendor/common/o2cb.init.sh
> +++ b/vendor/common/o2cb.init.sh
> @@ -1381,7 +1381,7 @@ unload()
>      # Only unmount configfs if there are no other users
>      if [ -z "$(ls -1 "$(configfs_path)")" ]
>      then
> -        unmount_filesystem "configfs" "/sys/kernel/config"
> +        unmount_filesystem "configfs" "$(configfs_path)"
>          if_fail $?
>      fi
>  }



More information about the Ocfs2-tools-devel mailing list