summaryrefslogtreecommitdiffstats
path: root/src/logicalfile/LMI_DirectoryContainsFileProvider.c
Commit message (Collapse)AuthorAgeFilesLines
* libopenlmi: minor fixes and improvementsJan Synacek2014-05-061-20/+20
|
* libopenlmi: reorganize and gatherJan Synacek2014-04-301-30/+30
| | | | | | | 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-8/+6
| | | | | Set there properties on output, meaning when GetInstance() is invoked, only when they are empty. Otherwise leave them unchanged.
* logicalfile: replace thread-unsafe functionsJan Synacek2014-01-091-79/+92
| | | | | | | Some functions, such as readdir() and dirname(), are not thread-safe. Use equivalent glib functions. trac: #173
* logicalfile: correctly fill FSCreationClassName and FSNameJan Synacek2013-12-171-10/+13
| | | | | | | | | | | 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.
* logicalfile: LMI_DirectoryContainsFileProvider.c crash if called with a ↵Klaus Kämpf2013-11-191-1/+4
| | | | non-directory
* logicalfile: fixed crashing of DirectoryContainsFile association.Jan Safranek2013-11-181-6/+6
| | | | 'path' and 'ccname' variables must be read first from the 'cop' before accessing them.
* logicalfile: don't assume 'Name' property is available before checking the classJan Safranek2013-11-141-7/+16
| | | | | | The provider must not crash when Associators and/or References is called with odd object path - it does not need to be LMI_UnixDirectory or CIM_LogicalFile.
* logicalfile: fixed key checking in associations.Jan Safranek2013-11-131-8/+21
| | | | | | | | Don't assume that the Associators() or References() get correct object 'cop' argument - the object might be totally unrelated to the association. E.g. SFCB calls Associators() on LMI_DirectoryContainsFile associations with CIM_ComputerSystem as 'cop' parameter, while the association is between a directory and a file in it and does not associate ComputerSystem in any way.
* Add lmi_get_computer_system function and fix lmi_get_system_nameRadek Novacek2013-10-311-6/+6
| | | | | | | | | | | | | | 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.
* logicalfile: fix resource leak and logicJan Synacek2013-10-081-1/+2
|
* logicalfile: correctly ignore creation class nameJan Synacek2013-10-021-7/+9
|
* logicalfile: fix resource leakJan Synacek2013-10-021-8/+8
|
* logicalfile: remove needless codeJan Synacek2013-10-021-29/+0
|
* Call lmi_init function from providersRadek Novacek2013-09-191-0/+1
|
* logicalfile: code cleanup and rewriteJan Synacek2013-09-181-23/+34
| | | | | | | | | | 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-2/+2
| | | | | | | | | | | | | | 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: make uses of strcmp() more readableJan Synacek2013-08-271-13/+13
|
* logicalfile: coverity fixesJan Synacek2013-08-271-2/+7
|
* logicalfile: correctly apply filters in LMI_DirectoryContainsFileJan Synacek2013-08-261-10/+78
|
* LogicalFile: use get_string_property_from_op() where appropriateJan Synacek2013-07-171-9/+3
|
* LogicalFile: remove unused variableJan Synacek2013-07-121-2/+1
|
* LogicalFile: use udev to fill info about the filesystemJan Synacek2013-07-021-5/+28
|
* LogicalFile: remove unused variableJan Synacek2013-07-021-1/+0
|
* Happy New Year! (better later than never)Jan Synacek2013-03-131-1/+1
|
* LogicalFile: fix DirectoryContainsFileJan Synacek2013-02-141-21/+16
|
* LogicalFile: check for valid classes in association methodsJan Synacek2013-02-141-0/+30
|
* LogicalFile: add socket file type and root directory associationJan Synacek2013-02-141-0/+1
| | | | | Add LMI_UnixSocket and LMI_RootDirectory association. LMI_RootDirectory associates the root directory with the computer system on which it resides.
* New provider: LogicalFileJan Synacek2013-02-111-0/+411