User Tools

Site Tools


dido:public:s_cli:05_contents:01_prt:04_dll:volume

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dido:public:s_cli:05_contents:01_prt:04_dll:volume [2021/05/01 21:44]
nick ↷ Links adapted because of a move operation
dido:public:s_cli:05_contents:01_prt:04_dll:volume [2021/06/15 13:55] (current)
nick
Line 1: Line 1:
-====== ​2.2.4 DEFINE VOLUME Command ​======+====== ​4.5 Volume ​======
 [[dido:​public:​s_cli:​05_contents:​01_prt:​04_dll:​start| Return to DidoDLL]] [[dido:​public:​s_cli:​05_contents:​01_prt:​04_dll:​start| Return to DidoDLL]]
  
Line 5: Line 5:
 ===== Purpose ===== ===== Purpose =====
 [[dido:​public:​s_cli:​05_contents:​01_prt:​04_dll:​volume| Return to Top]] [[dido:​public:​s_cli:​05_contents:​01_prt:​04_dll:​volume| Return to Top]]
 +
 +The purpose of the DEFINE VOLUME command is to define a localized name mapping an actual path to a directory to a symbolic name. The symbolic name provides a logical name for use throughout the DIDO CLI. This helps with maintenance because the actual path is maintained in a single location. ​
  
 ===== Syntax ===== ===== Syntax =====
Line 11: Line 13:
 <​code>​ <​code>​
 DEFINE VOLUME <​VolumeName>​ AS DEFINE VOLUME <​VolumeName>​ AS
-   PATH = <​DirectoryPath>;​+   PATH = <​DirectoryPath
 +   MODE = <​DirectoryPermissions>;
 </​code>​ </​code>​
  
Line 17: Line 20:
 [[dido:​public:​s_cli:​05_contents:​01_prt:​04_dll:​volume| Return to Top]] [[dido:​public:​s_cli:​05_contents:​01_prt:​04_dll:​volume| Return to Top]]
  
-  * **VolumeName** ​    ​::= +  * **VolumeName** ​          ​::= The symbolic name used to reference the volume throughout the DIDO CLI. 
-  * **DirectoryPath** ​ ::=+  * **DirectoryPath** ​       ::= The path to the directory associated with the volume. 
 +  * **DirectoryPermissions** ​::= The mode (i.e., permissions) associated with the volume (i.e., R, W, X). The default is RW.
  
 ==== Examples ==== ==== Examples ====
Line 25: Line 29:
 <code sql | Examples of Defining Volume in DidoLL> <code sql | Examples of Defining Volume in DidoLL>
     DEFINE VOLUME config AS     DEFINE VOLUME config AS
-      path      = "/​etc/​myDidoRoot/";​+      path      = "/​etc/​myDidoRoot/​
 +      mode      = "RX";
     DEFINE VOLUME data AS     DEFINE VOLUME data AS
-      path      = "/​etc/​myDidoRoot/";​+      path      = "/​etc/​myDidoRoot/​
 +      mode      = "RW";
     DEFINE VOLUME wallet AS     DEFINE VOLUME wallet AS
       path      = "​~/​myWallet/";​       path      = "​~/​myWallet/";​
dido/public/s_cli/05_contents/01_prt/04_dll/volume.1619919845.txt.gz · Last modified: 2021/05/01 21:44 by nick