summaryrefslogtreecommitdiffstats
path: root/src/logicalfile/LMI_UnixFileProvider.c
Commit message (Collapse)AuthorAgeFilesLines
* libopenlmi: minor fixes and improvementsJan Synacek2014-05-061-2/+2
|
* libopenlmi: reorganize and gatherJan Synacek2014-04-301-1/+1
| | | | | | | Make naming consistent. Gather common functionality into one library and try to use it across all providers. Introduce libtool-style versioning for libraries.
* Updated copyright yearsPeter Schiffer2014-01-161-1/+1
| | | | Updated copyright years to include new year 2014.
* logicalfile: don't automatically fill FSName and FSCreationClassNameJan Synacek2014-01-101-1/+5
| | | | | Set there properties on output, meaning when GetInstance() is invoked, only when they are empty. Otherwise leave them unchanged.
* logicalfile: correctly fill FSCreationClassName and FSNameJan Synacek2013-12-171-2/+3
| | | | | | | | | | | Files residing on nodevice or remote filesystems now correctly set these properties. FSCreationClassName is set to "LMI_TransientFileSystem" and FSName is set to "PATH=<path to file>". This behavior is consistent with how storage providers set those properties. To check for filesystem, the provider uses udev and checks for ID_FS_UUID_ENC and DEVNAME fields. If these are not found, filesystem is then considered nodevice or remote. Additional test for files on transient filesystems has been added.
* Add lmi_get_computer_system function and fix lmi_get_system_nameRadek Novacek2013-10-311-5/+5
| | | | | | | | | | | | | | PG_ComputerSystem has different method how to get hostname than our providers. In order to create the associations to this class we need to enumerate it. The downside is that all providers must supply CMPIContext to the lmi_init function. New function lmi_get_computer_system returns CMPIObjectPath to the configured CIM_ComputerSystem subclass instance. This object should be used in all references with ComputerSystem. Function lmi_get_system_name has been altered to return same value as ComputerSystem "Name" property.
* Call lmi_init function from providersRadek Novacek2013-09-191-1/+1
|
* logicalfile: code cleanup and rewriteJan Synacek2013-09-181-2/+5
| | | | | | | | | | GetInstance() calls were rewritten using cleaner code. Also, the macros that were used before were either rewritten to functions, or cleaned up so they wouldn't return or do anything unexpected. Helper functions now use CMPIStatus more consistently. Some memory leaks were fixed.
* logicalfile: ignore some key propertiesJan Synacek2013-09-161-1/+14
| | | | | | | | | | | | | | CIM_LogicalFile and CIM_UnixFile have some key properties that are not needed when calling GetInstance(). On Linux systems, all is needed to get information about a file is its path. Type of the filesystem that the file resides on and the file type itself are not needed. In fact, it's not desirable to require those when querying remote systems. Ignore FSCreationClassName, FSName, LFCreationClassName and CreationClassName. This commit reverts most of the functionality of commit 5c3e1a6203e495bec37acd8c3731ca41377beb94.
* logicalfile: protect libselinux calls with a mutexJan Synacek2013-09-091-0/+9
|
* logicalfile: use lstat(2) instead of stat(2)Jan Synacek2013-09-061-1/+1
|
* LogicalFile: set LMI_UnixFile.NameJan Synacek2013-07-171-0/+1
| | | | | The property is not mandatory, but it's nice to have it consistent with other LMI file classes that are derived from CIM_LogicalFile.
* LogicalFile: make selinux lookups non-fatalJan Synacek2013-07-151-2/+4
| | | | | If, for some reason, no selinux context can be found, use a default <<none>> that is used by the selinux utilities (e.g. matchpathcon).
* LogicalFile: add selinux contexts supportJan Synacek2013-07-151-0/+61
| | | | | Add support for displaying the current and the expected selinux context on a file.
* Happy New Year! (better later than never)Jan Synacek2013-03-131-1/+1
|
* New provider: LogicalFileJan Synacek2013-02-111-0/+177