Previous page

Next page

Locate page in Contents

Print this page

get_mounts

Summary:

Retrieves information about the filesystems mounted on the specified server.

Request specification:

Name

Min/Max

Type

Description

get_mounts

 

 

 

{

 

 

 

eid

0..1

eid_type

Server ID. If omitted, a list of file systems mounted in the current server will be retrieved.

}

 

 

 

Linux Returns:

Name

Min/Max

Type

Description

mount

 

 

Mount information.

{

 

 

 

permanent

0..1

boolean

Contains true if the filesystem is mounted permanently. Contains false otherwise.

Permanently mounted filesystems have corresponding entries in /etc/fstab file and are mounted automatically every time the system reboots.

device

0..1

string

Device name, e.g. /dev/fd0

point

1..1

string

Mount point, e.g. /mnt/floppy

filesystem

0..1

string

Filesystem type.

active

0..1

boolean

Contains true if mount is active. Contains false otherwise.

Temporarily mounted filesystems exist only in the "active" state. Trying to make the temporary mount inactive will remove the mount from the system.

}

 

 

 

WindowsReturns:

Name

Min/Max

Type

Description

mount

 

 

Mount information.

{

 

 

 

device

0..1

string

Device name. Can be a letter of the physical drive on the Hardware Node or the name of the loopback-mounted filesystem image.

point

1..1

string

The drive letter the filesystem is mounted to.

size

0..1

long

The total size of the media in the mounted physical drive or the size of the loopback-mounted file, in bytes.

}

 

 

 

Description:

Linux On Linux, the get_mounts call retrieves information about currently mounted filesystems (usually a device, but can also be a directory name or a dummy).

WindowsOn Windows, it is possible to mount a physical drive or a filesystem image. Depending on the source, the get_mounts call returns the following information:

Linux Example:

Input

<packet version="4.0.0" id="2">

<target>vzadevm</target>

<data>

<vzadevm>

<get_mounts>

<eid>ba17a0c5-9036-473c-a813-aa6f5b36cf16</eid>

</get_mounts>

</vzadevm>

</data>

</packet>

Output

<ns1:packet priority="0" version="4.0.0">

<ns1:origin>devm</ns1:origin>

<ns1:target>vzclient5</ns1:target>

<ns1:data>

<ns2:devm>

<ns2:mount>

<ns2:device>/dev/VolGroup00/LogVol00</ns2:device>

<ns2:filesystem>ext3</ns2:filesystem>

<ns2:permanent>1</ns2:permanent>

<ns2:active>1</ns2:active>

<ns2:point>/</ns2:point>

</ns2:mount>

<ns2:mount>

<ns2:device>LABEL=/boot</ns2:device>

<ns2:filesystem>ext3</ns2:filesystem>

<ns2:permanent>1</ns2:permanent>

<ns2:point>/boot</ns2:point>

</ns2:mount>

<ns2:mount>

<ns2:device>/dev/sdb1</ns2:device>

<ns2:filesystem>auto</ns2:filesystem>

<ns2:permanent>1</ns2:permanent>

<ns2:point>/vz</ns2:point>

</ns2:mount>

<ns2:mount>

<ns2:device>/dev/hdd</ns2:device>

<ns2:filesystem>auto</ns2:filesystem>

<ns2:point>/media/cdrom</ns2:point>

</ns2:mount>

<ns2:mount>

<ns2:device>/dev/hdc</ns2:device>

<ns2:filesystem>auto</ns2:filesystem>

<ns2:point>/media/cdrom1</ns2:point>

</ns2:mount>

<ns2:mount>

<ns2:device>/dev/hdb</ns2:device>

<ns2:filesystem>auto</ns2:filesystem>

<ns2:point>/media/cdrom2</ns2:point>

</ns2:mount>

<ns2:mount>

<ns2:device>/dev/hda</ns2:device>

<ns2:filesystem>auto</ns2:filesystem>

<ns2:point>/media/cdrom3</ns2:point>

</ns2:mount>

<ns2:mount>

<ns2:device>/dev/fd0</ns2:device>

<ns2:filesystem>auto</ns2:filesystem>

<ns2:point>/media/floppy</ns2:point>

</ns2:mount>

</ns2:devm>

</ns1:data>

</ns1:packet>

WindowsExample:

Input

<packet version="4.0.0">

<target>vzadevm</target>

<data>

<vzadevm>

<get_mounts>

<eid>7f29d970-3e31-46f3-9b59-2654329e3e55</eid>

</get_mounts>

</vzadevm>

</data>

</packet>

Output

<?xml version="1.0" encoding="UTF-8"?><ns1:packet xmlns:ns1="http://www.swsoft.com/webservices/vzl/4.0.0/protocol" xmlns:ns2="http://www.swsoft.com/webservices/vza/4.0.0/vzadevm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="2dc464871d0t428bre80" time="2007-05-15T13:27:38+0000" priority="0" version="4.0.0">

<ns1:origin>vzadevm</ns1:origin>

<ns1:target>vzclient2</ns1:target>

<ns1:dst>

<ns1:director>gend</ns1:director>

</ns1:dst>

<ns1:data>

<ns2:vzadevm>

<ns2:mount>

<ns2:device>root.efd</ns2:device>

<ns2:filesystem>auto</ns2:filesystem>

<ns2:size>174094336</ns2:size>

<ns2:point>C:</ns2:point>

</ns2:mount>

<ns2:mount>

<ns2:device>C:\img.efd</ns2:device>

<ns2:filesystem>auto</ns2:filesystem>

<ns2:size>6027264</ns2:size>

<ns2:point>F:</ns2:point>

</ns2:mount>

<ns2:mount>

<ns2:device>lpbk0000.efd</ns2:device>

<ns2:filesystem>auto</ns2:filesystem>

<ns2:size>1000011776</ns2:size>

<ns2:point>K:</ns2:point>

</ns2:mount>

</ns2:vzadevm>

</ns1:data>

<ns1:src>

<ns1:director>gend</ns1:director>

</ns1:src>

</ns1:packet>

Please send us your feedback on this help page