Changeset View
Changeset View
Standalone View
Standalone View
src/engine/fsutils.h
Show All 24 Lines | |||||
25 | #define BALOO_ENGINE_FSUTILS_H | 25 | #define BALOO_ENGINE_FSUTILS_H | ||
26 | 26 | | |||
27 | #include <QString> | 27 | #include <QString> | ||
28 | 28 | | |||
29 | namespace Baloo { | 29 | namespace Baloo { | ||
30 | namespace FSUtils { | 30 | namespace FSUtils { | ||
31 | 31 | | |||
32 | /** | 32 | /** | ||
33 | * Returns name of filesystem that @p directory is stored on. This | | |||
34 | * only works on Linux and returns empty string on other platforms or when it's | | |||
35 | * unable to detect the filesystem. | | |||
36 | */ | | |||
37 | QString getDirectoryFileSystem(const QString &directory); | | |||
38 | | ||||
39 | /** | | |||
40 | * Disables filesystem copy-on-write feature on given file or directory. | 33 | * Disables filesystem copy-on-write feature on given file or directory. | ||
41 | * Only implemented on Linux and does nothing on other platforms. | 34 | * Only implemented on Linux and does nothing on other platforms. | ||
42 | */ | 35 | */ | ||
43 | void disableCoW(const QString &path); | 36 | void disableCoW(const QString &path); | ||
44 | 37 | | |||
45 | } | 38 | } | ||
46 | } | 39 | } | ||
47 | #endif | 40 | #endif |