diff options
Diffstat (limited to 'src/logicalfile/file.h')
-rw-r--r-- | src/logicalfile/file.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/logicalfile/file.h b/src/logicalfile/file.h index b1b3358..df906c2 100644 --- a/src/logicalfile/file.h +++ b/src/logicalfile/file.h @@ -29,6 +29,7 @@ #include <libgen.h> #include <konkret/konkret.h> #include <assert.h> +#include <libudev.h> #include "globals.h" #ifndef BUFLEN @@ -38,8 +39,7 @@ #define PATH_MAX 4096 #endif -#define FSCREATIONCLASSNAME "FSCCNToBeAgreedOn" -#define FSNAME "FSNToBeAgreedOn" +#define FSCREATIONCLASSNAME "LMI_LocalFileSystem" #define sb_permmask(sb) ((sb).st_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) #define sb_isreadable(sb) ( \ @@ -59,12 +59,12 @@ ) #define stoms(t) ((t)*1000000) -#define fill_logicalfile(type, obj, name, creation_class) \ +#define fill_logicalfile(type, obj, name, fsname, creation_class) \ type##_Set_Name((obj), (name)); \ type##_Set_CSCreationClassName((obj), get_system_creation_class_name()); \ type##_Set_CSName((obj), get_system_name()); \ type##_Set_FSCreationClassName((obj), FSCREATIONCLASSNAME); \ - type##_Set_FSName((obj), FSNAME); \ + type##_Set_FSName((obj), (fsname)); \ type##_Set_CreationClassName((obj), (creation_class)); #define fill_basic(cmpitype, path, stattype, error) \ @@ -103,6 +103,8 @@ enum RequiredNames { CMPIStatus lmi_check_required(const CMPIBroker *, const CMPIObjectPath *, const enum RequiredNames); void get_class_from_stat(const struct stat *, char *); int get_class_from_path(const char *, char *); +int get_fsname_from_stat(const struct stat *, char **); +int get_fsname_from_path(const char *, char **); void _dump_objectpath(const CMPIObjectPath *); |