• Increase font size
  • Default font size
  • Decrease font size
Home Software SysFunc Sysfunc Reference Guide - Filesystems

Sysfunc Reference Guide - Filesystems

E-mail Print
Read : 9,595 times
(1 vote, average 5.00 out of 5)
Article Index
Sysfunc Reference Guide
Configuration parameters
System database
Disk management
Error handling
File manipulation
Filesystems
IP V4 addresses
Kernel
Logical volume manager
Miscellaneous
Message display
User interaction
Network
OS
File backup
Software packages
Services
Time and date
Temporary file management
Users and groups
Vmware-specific
Function index
All Pages

create_fs

Create a file system, mount it, and register it (mount at boot)

### This function is deprecated. Please use fs_create.

Refuses existing directory as mount point (security)

Arguments

$1Mount point
$2device path
$3Optional. FS type (if empty, default FS type for this OS)
$4Optional. Mount point directory owner[:group]

Returns

0 if no error, 1 on error

Displays

Info msg

create_lv_fs

Create a logical volume and a filesystem on it

### This function is deprecated. Please use fs_create_lv_fs ### Warning: Note that superseding function has argument 4 and 5 swapped (size and FS type).

Combines create_lv and fs_create

Arguments

$1Mount point (directory)
$2Logical volume name
$3Volume group name
$4File system type (optional. if empty, defaults to default FS type for this OS)
$5Size (Default: megabytes, optional suffixes: [kmgt]. Special value: 'all' takes the whole free size in the VG.
$6Optional. Directory owner[:group]

Returns

0: OK, !=0: Error

Displays

Info msg

fs_create

Create a file system, mount it, and register it (mount at boot)

Refuses existing directory as mount point (security)

Arguments

$1Mount point
$2device path
$3Optional. FS type (if empty, default FS type for this OS)
$4Optional. Mount point directory owner[:group]

Returns

0 if no error, 1 on error

Displays

Info msg

fs_create_lv_fs

Create a logical volume and a filesystem on it

Combines create_lv and fs_create

Arguments

$1Mount point (directory)
$2Logical volume name
$3Volume group name
$4Size (Default: megabytes, optional suffixes: [kmgt]. Special value: 'all' takes the whole free size in the VG.
$5Optional. File system type. Defaults to default FS type for this environment
$6Optional. Directory owner[:group]

Returns

0: OK, !=0: Error

Displays

Info msg

fs_default_type

Returns default FS type for current environment

Arguments

None

Returns

Always 0

Displays

Type

fs_device

Gets the device of the filesystem containing a given path

Arguments

$1Path (must correspond to an existing element)

Returns

Always 0

Displays

The normalized device of the filesystem containing the element

fs_extend

Extend a file system to a given size

Arguments

$1A path contained in the file system to extend
$2The new size in Mbytes, or the size to add if prefixed with a '+'

Returns

Always 0

Displays

Info msg

fs_is_mount_point

Checks if a directory is a file system mount point

A filesystem must be mounted on the directory for it to be recognized as a mount point.

Arguments

$1Directory to check

Returns

0 if true, !=0 if false

Displays

nothing

fs_mount_point

Gets the mount point of the filesystem containing a given path

Arguments

$1Path (must correspond to an existing element)

Returns

Always 0

Displays

The mount directory of the filesystem containing the element

fs_size

Get the size of the filesystem containing a given path

Note: This function is to be used for a mounted filesystem. In order to get the size of a file system contained in a given device (mounted or not), use disk_fs_size.

Arguments

$1Path (must correspond to an existing element)

Returns

Always 0

Displays

FS size in Mbytes

get_fs_device

Gets the device of the filesystem containing a given path

### This function is deprecated. Please use fs_device.

Arguments

$1Path (must correspond to an existing element)

Returns

Always 0

Displays

The normalized device of the filesystem containing the element

get_fs_mnt

Gets the mount point of the filesystem containing a given path

### This function is deprecated. Please use fs_mount_point.

Arguments

$1Path (must correspond to an existing element)

Returns

Always 0

Displays

The mount directory of the filesystem containing the element

get_fs_size

Get the size of the filesystem containing a given path

### This function is deprecated. Please use fs_size.

Arguments

$1Path (must correspond to an existing element)

Returns

Always 0

Displays

FS size in Mbytes

has_dedicated_fs

Checks if a directory is a file system mount point

### This function is deprecated. Please use fs_is_mount_point.

Arguments

$1Directory to check

Returns

0 if true, !=0 if false

Displays

nothing

set_fs_space

Extend a file system to a given size

### This function is deprecated. Please use fs_extend.

Arguments

$1A path contained in the file system to extend
$2The new size in Mbytes, or the size to add if prefixed with a '+'

Returns

Always 0

Displays

Info msg

 

Please login or register to add a comment