Data Structures | |
| struct | _AlpVolumeSvcsFSinfo |
| File System info block, AlpVolumesvcsFSinfo returns a GArray of these. More... | |
Defines | |
| #define | ALP_NOTIFY_EVENT_DEVICE_ADDED "/alp/volumesvcs/device_added" |
| a card has been inserted that is either blank or the file system on it ws not recognized | |
| #define | ALP_NOTIFY_EVENT_DEVICE_REMOVED "/alp/volumesvcs/device_removed" |
| a card was removed that did not contain mounted file systems | |
| #define | ALP_NOTIFY_EVENT_DISC_SPACE_CRITICAL "/alp/volumesvcs/disc_space_crtical" |
| disc space critical. | |
| #define | ALP_NOTIFY_EVENT_DISC_SPACE_LOW "/alp/volumesvcs/disc_space_low" |
| disc space is low. | |
| #define | ALP_NOTIFY_EVENT_DISC_SPACE_OK "/alp/volumesvcs/disc_space_ok" |
| disc space ok. | |
| #define | ALP_NOTIFY_EVENT_VOLUME_ADDED "/alp/volumesvcs/volume_added" |
| a card has been inserted and the volumes on it mounted | |
| #define | ALP_NOTIFY_EVENT_VOLUME_REMOVED "/alp/volumesvcs/volume_removed" |
| a card with mounted volumes has been removed | |
| #define | ALP_STATUS_VOLUMESVCS_DEVICE_BUSY ( ALP_CLASS_VOLUMESVCS | 0x03) |
| target device or bindmount could not be unmounted as it is in active use | |
| #define | ALP_STATUS_VOLUMESVCS_EBADF ( ALP_CLASS_VOLUMESVCS | 0x08) |
| The file discriptor refers to a file that was opened without write permission. | |
| #define | ALP_STATUS_VOLUMESVCS_EFBIG ( ALP_CLASS_VOLUMESVCS | 0x08) |
| The value of offset+ len is greater than the maximum file size. | |
| #define | ALP_STATUS_VOLUMESVCS_EINTR ( ALP_CLASS_VOLUMESVCS | 0x09) |
| signal was caught during execution | |
| #define | ALP_STATUS_VOLUMESVCS_EINVALUE ( ALP_CLASS_VOLUMESVCS | 0x07) |
| len is zero or offset is < zero. | |
| #define | ALP_STATUS_VOLUMESVCS_EIO ( ALP_CLASS_VOLUMESVCS | 0x0a) |
| An I/O error occurred while reading from or writing to a file system. | |
| #define | ALP_STATUS_VOLUMESVCS_ENODEV ( ALP_CLASS_VOLUMESVCS | 0x0b) |
| The File Discriptor argument does not refer to a regular file. | |
| #define | ALP_STATUS_VOLUMESVCS_ESPIPE ( ALP_CLASS_VOLUMESVCS | 0x0c) |
| The fd argument is associated with a pipe or FIFO.OL. | |
| #define | ALP_STATUS_VOLUMESVCS_INVALID_FD ( ALP_CLASS_VOLUMESVCS | 0x06) |
| The file discriptor is invalid. | |
| #define | ALP_STATUS_VOLUMESVCS_INVALID_FP ( ALP_CLASS_VOLUMESVCS | 0x0e) |
| Invalid file path, not able to get the real path for the file . | |
| #define | ALP_STATUS_VOLUMESVCS_INVALID_MP ( ALP_CLASS_VOLUMESVCS | 0x0d) |
| The mount point does not exist. | |
| #define | ALP_STATUS_VOLUMESVCS_INVALID_PARAMETER ( ALP_CLASS_VOLUMESVCS | 0x01) |
| bad input | |
| #define | ALP_STATUS_VOLUMESVCS_NO_FREE_SPACE ( ALP_CLASS_VOLUMESVCS | 0x05) |
| Free Space not available on disc. | |
| #define | ALP_STATUS_VOLUMESVCS_NOT_FOUND ( ALP_CLASS_VOLUMESVCS | 0x02) |
| target device or volume could not be found | |
| #define | ALP_STATUS_VOLUMESVCS_OK ALP_STATUS_OK |
| operation completed sucessfully | |
| #define | ALP_STATUS_VOLUMESVCS_PROVIDER_ERROR ( ALP_CLASS_VOLUMESVCS | 0x04) |
| An error occurred while enumerating the volumes. | |
| #define | ALP_SYSTEM_SLOTS_DEV_PATH "/dev_path" |
| the /dev/name to match against (may be incomplete /dev/mmcblk matches /dev/mmcblk0...) | |
| #define | ALP_SYSTEM_SLOTS_NAME "/name" |
| the name to be used for this slot | |
| #define | ALP_SYSTEM_SLOTS_PREFIX "/dev/slots/" |
| the head of the tree for slot names | |
| #define | ALP_VOLUMESVCS_FLAGS_BINDMOUNT 0x1 |
| entry represents a bind mount not necessarily a real device | |
| #define | ALP_VOLUMESVCS_FLAGS_HIDDEN 0x4 |
| entry represents an entry to be hidden from users | |
| #define | ALP_VOLUMESVCS_FLAGS_PARTITION 0x2 |
| entry represents a partition with or witout fs as opposed to an entire disk (disk are only shown if there are no partitions on them). | |
| #define | ALP_VOLUMESVCS_FLAGS_READONLY 0x8 |
| entry represents an read-only partition or disk | |
| #define | ALP_VOLUMESVCS_HIDEVOL_PATH ALP_EXT_SYSPATH_HIDDEN_VOL |
| if this exists the volume is not exposed to users | |
Typedefs | |
| typedef char * | AlpNotifyEventDeviceAdded |
| notification detail for a device added event | |
| typedef char * | AlpNotifyEventdeviceRemoved |
| notification detail for a device removed event | |
| typedef char * | AlpNotifyEventVolumeAdded |
| notification detail for a volume added event | |
| typedef char * | AlpNotifyEventVolumeRemoved |
| notification detail for a volume removed event | |
| typedef _AlpVolumeSvcsFSinfo | AlpVolumeSvcsFSinfo |
| File System info block, AlpVolumesvcsFSinfo returns a GArray of these. | |
| typedef enum _AlpVolumeSvcsKind | AlpVolumeSvcsKind |
| As a member, this is an enum specifying whether a particular volume is internal, external, or ROM. As a parameter to alp_volumesvcs_get_volumes, this tells volumesvcs what set of volumes the caller wants to get back. | |
Enumerations | |
| enum | _AlpVolumeSvcsKind { ALP_VOLUMESVCS_KIND_INTERNAL = 1 << 1, ALP_VOLUMESVCS_KIND_EXTERNAL = 1 << 2, ALP_VOLUMESVCS_KIND_ROM = 1 << 3, ALP_VOLUMESVCS_KIND_TMP = 1 << 4, ALP_VOLUMESVCS_KIND_ALL = ~0 } |
| As a member, this is an enum specifying whether a particular volume is internal, external, or ROM. As a parameter to alp_volumesvcs_get_volumes, this tells volumesvcs what set of volumes the caller wants to get back. More... | |
Functions | |
| alp_status_t | alp_volumesvcs_bind (const gchar *name, const gchar *path) |
| Mount a directory as if it were a file system (bind mounts) This entry will be assgined a udi which may be looked up in fsinfo and explicitly umounted but the entry can not be removed until the volumesvcsd server is restarted. | |
| alp_status_t | alp_volumesvcs_check_disk_free_space (guint64 requested_size, gboolean dialog_on_error) |
| Check Disc Free Space. The Free space is cheked on the disc if available free space is less than the defined buffer free space then return error and show a attention dialog if required. | |
| alp_status_t | alp_volumesvcs_fallocate (int fd, off_t offset, off_t len, const char *file_path) |
| Allocate space for file. The purpose of the function is to allocate enough storage so that future writes to the file in the range [offset,offset+len] cannot fail because the storage device has no room. | |
| alp_status_t | alp_volumesvcs_fsinfo_array (AlpVolumeSvcsKind kind, GArray **fsinfo_array) |
| Get information on all pluggable devices and any mounted file systems on them. | |
| alp_status_t | alp_volumesvcs_fsinfo_array_free (GArray *fsinfo_array) |
| Free the array of AlpVolumeSvcsFSinfo struct's. | |
| alp_status_t | alp_volumesvcs_fsinfo_for_udi (AlpVolumeSvcsFSinfo **fsinfo, const gchar *udi) |
| Allocates and returns an AlpVolumeSvcsFSinfo* matching the _udi parameter passed in. | |
| alp_status_t | alp_volumesvcs_fsinfo_free (AlpVolumeSvcsFSinfo *fsinfo) |
| Frees AlpVolumeSvcsFSinfo* allocated by alp_volumesvcs_fsinfo_for_udi(). | |
| alp_status_t | alp_volumesvcs_fstypes (GPtrArray **fstypes) |
| return a list of filesystem types that may be used as input to alp_volumesvcs_makefs Other formats MAY be supported for mounting a pre-formated volume, but only these may be used to format a volume ON the ALP device. | |
| alp_status_t | alp_volumesvcs_makefs (const gchar *device_udi, const gchar *name, const gchar *fstype) |
| Initialzie a volume, Create a 1 part partition table and make a msdos file system in it. | |
| alp_status_t | alp_volumesvcs_mount (const gchar *device_udi) |
| Mount a volume. | |
| alp_status_t | alp_volumesvcs_rename_volume (const char *udi, const gchar *name) |
| Reanme a volume. The volume name (part of the vfat format) is changed. The volume can be mounted or unmounted when the call is made. If mounted it will be UNmounted as part of the call. The renamed volume is always mounted on return from this call (barrying errors that prevent such). | |
| alp_status_t | alp_volumesvcs_umount (const gchar *device_udi) |
| UNmount a volume. | |
|
|
a card has been inserted that is either blank or the file system on it ws not recognized
|
|
|
a card was removed that did not contain mounted file systems
|
|
|
disc space critical.
|
|
|
disc space is low.
|
|
|
disc space ok.
|
|
|
a card has been inserted and the volumes on it mounted
|
|
|
a card with mounted volumes has been removed
|
|
|
target device or bindmount could not be unmounted as it is in active use
|
|
|
The file discriptor refers to a file that was opened without write permission.
|
|
|
The value of offset+ len is greater than the maximum file size.
|
|
|
signal was caught during execution
|
|
|
len is zero or offset is < zero.
|
|
|
An I/O error occurred while reading from or writing to a file system.
|
|
|
The File Discriptor argument does not refer to a regular file.
|
|
|
The fd argument is associated with a pipe or FIFO.OL.
|
|
|
The file discriptor is invalid.
|
|
|
Invalid file path, not able to get the real path for the file .
|
|
|
The mount point does not exist.
|
|
|
bad input
|
|
|
Free Space not available on disc.
|
|
|
target device or volume could not be found
|
|
|
operation completed sucessfully
|
|
|
An error occurred while enumerating the volumes.
|
|
|
the /dev/name to match against (may be incomplete /dev/mmcblk matches /dev/mmcblk0...)
|
|
|
the name to be used for this slot
|
|
|
the head of the tree for slot names
|
|
|
entry represents a bind mount not necessarily a real device
|
|
|
entry represents an entry to be hidden from users
|
|
|
entry represents a partition with or witout fs as opposed to an entire disk (disk are only shown if there are no partitions on them).
|
|
|
entry represents an read-only partition or disk
|
|
|
if this exists the volume is not exposed to users
|
|
|
notification detail for a device added event
|
|
|
notification detail for a device removed event
|
|
|
notification detail for a volume added event
|
|
|
notification detail for a volume removed event
|
|
|
File System info block, AlpVolumesvcsFSinfo returns a GArray of these.
|
|
|
As a member, this is an enum specifying whether a particular volume is internal, external, or ROM. As a parameter to alp_volumesvcs_get_volumes, this tells volumesvcs what set of volumes the caller wants to get back.
|
|
|
||||||||||||
|
Mount a directory as if it were a file system (bind mounts) This entry will be assgined a udi which may be looked up in fsinfo and explicitly umounted but the entry can not be removed until the volumesvcsd server is restarted.
|
|
||||||||||||
|
Check Disc Free Space. The Free space is cheked on the disc if available free space is less than the defined buffer free space then return error and show a attention dialog if required.
|
|
||||||||||||||||||||
|
Allocate space for file. The purpose of the function is to allocate enough storage so that future writes to the file in the range [offset,offset+len] cannot fail because the storage device has no room.
|
|
||||||||||||
|
Get information on all pluggable devices and any mounted file systems on them.
|
|
|
Free the array of AlpVolumeSvcsFSinfo struct's.
|
|
||||||||||||
|
Allocates and returns an AlpVolumeSvcsFSinfo* matching the _udi parameter passed in.
|
|
|
Frees AlpVolumeSvcsFSinfo* allocated by alp_volumesvcs_fsinfo_for_udi().
|
|
|
return a list of filesystem types that may be used as input to alp_volumesvcs_makefs Other formats MAY be supported for mounting a pre-formated volume, but only these may be used to format a volume ON the ALP device.
|
|
||||||||||||||||
|
Initialzie a volume, Create a 1 part partition table and make a msdos file system in it.
|
|
|
Mount a volume.
|
|
||||||||||||
|
Reanme a volume. The volume name (part of the vfat format) is changed. The volume can be mounted or unmounted when the call is made. If mounted it will be UNmounted as part of the call. The renamed volume is always mounted on return from this call (barrying errors that prevent such).
|
|
|
UNmount a volume.
|
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.