source: client/engine/Cache.lib.testing @ 05cfc62

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 05cfc62 was 9948203, checked in by adv <adv@…>, 14 years ago

integracion version 1.0 - engine -- ticket:305

git-svn-id: https://opengnsys.es/svn/branches/version1.0@1486 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 670 bytes
Line 
1function ogMountCache ()
2{
3# Si se solicita, mostrar ayuda.
4if [ "$*" == "help" ]; then
5    ogHelp "$FUNCNAME" "$FUNCNAME" "$FUNCNAME  ==>  /mnt/sda4"
6    return
7fi
8
9ogMountFs $(ogFindCache) 2>/dev/null || ogRaiseError $OG_ERR_PARTITION "$MSG_NOCACHE" || return $?
10}
11
12
13function ogUnmountCache ()
14{
15# Variables locales.
16local CACHE
17# Si se solicita, mostrar ayuda.
18if [ "$*" == "help" ]; then
19    ogHelp "$FUNCNAME" "$FUNCNAME"
20    return
21fi
22
23CACHE=$(ogFindCache) || ogRaiseError $OG_ERR_PARTITION "$MSG_NOCACHE"
24ogIsMounted $CACHE || return 0
25ogUnmountFs $CACHE
26# Borrar enlace simbólico de /mnt/ParticiónCache.
27rm -f $(ogDiskToDev $CACHE | sed 's/dev/mnt/')
28}
29
30
31
Note: See TracBrowser for help on using the repository browser.