summaryrefslogtreecommitdiff
path: root/metadata
Commit message (Collapse)AuthorAgeFilesLines
* gdbus: Fix srcdir != builddir and make the build more quietTomas Bzatek2012-07-311-2/+2
|
* gdbus: Remove last traces of libdbus in metadata sourcesTomas Bzatek2012-07-313-5/+1
|
* Update the Address of the FSFFelix Möller2012-07-304-8/+8
| | | | | | | | | | | | | | | Updating the address of the FSF. This has been done by: while read file; do sed -i 's:59 Temple Place:51 Franklin Street:' $file sed -i 's:Suite 330:Fifth Floor:' $file sed -i 's:02111-1307:02110-1301:' $file done https://bugzilla.gnome.org/show_bug.cgi?id=656598 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
* gdbus: Construct proxies without connecting signals and propertiesTomas Bzatek2012-07-201-1/+1
| | | | | Use G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS and G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flags where applicable.
* build: Fix srcdir != builddirColin Walters2012-06-061-1/+1
|
* Port volume monitoring and metadata to GDBusTomas Bzatek2012-06-044-539/+365
| | | | | | | | This is a complete port of volume monitors and metadata to GDBus. The (private) d-bus API has been mostly preserved except of MountOp methods. No difference in functionality should be observed.
* Adapt to GLib 2.31 deprecations and thread API changesMatthias Clasen2011-10-211-30/+30
| | | | | | | GStaticMutex and GStaticRWLock have been replaced by GMutex and GRWLock, and g_thread_init() is no longer needed. https://bugzilla.gnome.org/show_bug.cgi?id=661148
* Use g_atomic_int_add instead of deprecated g_atomic_int_exchange_and_add.Kjartan Maraas2011-10-211-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=659815
* Purge hardcoded -DG_DISABLE_DEPRECATEDColin Walters2011-10-121-1/+1
| | | | | Especially now that deprecations are proper gcc warnings, no need to hardcode this.
* metadata: Avoid passing NULL to strchr()Tomas Bzatek2011-08-151-1/+2
| | | | Found by Coverity Scan analysis
* Cleanups and fixes for compiler warningsKjartan Maraas2011-03-171-10/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=641856
* Rename gdbusutils.h to avoid conflict with GIO1.6.2Matthias Clasen2010-05-272-2/+2
| | | | This makes gvfs build with recent glib again, see bug #619537
* Use g_poll instead of poll in metatree.cChristian Kellner2010-02-141-4/+3
| | | | Patch by "paul <ephraim_owns@hotmail.com>" Fixes bug #60468.
* Correctly dup strings in meta_tree_lookup_stringvAlexander Larsson2009-12-011-1/+1
| | | | Also, make sure to free that in all callers.
* Fix warningAlexander Larsson2009-12-011-1/+1
|
* If there are no mtimes in the file, use 0 as mtime baseAlexander Larsson2009-11-191-1/+2
| | | | | | Before we used to store -1 (0xffffffff) as the mtime base in this case. This value is not used if there are no mtimes though, so this is more like a cosmetic change.
* Don't store write() return val in unsigned variableAlexander Larsson2009-11-191-1/+1
| | | | | | The conversion to unsigned means we failed to recognize errors, since if (ret < 0) was never hit. This is the suspected cause for data loss in bug 598561.
* Fsync the directory when rotating the metadataChristian Kellner2009-11-181-2/+13
| | | | | This is needed so we never end up having a stable file with the rotated bit set. Should fix bug #600057.
* Reread metadata only when the inodes are differentChristian Kellner2009-11-181-0/+14
| | | | This will protect against bugs where the stable file has the rotated bug set (which should never happen but see bug #600057)
* Use $(AM_V_GEN) for more silent buildChristian Persch2009-10-091-1/+1
| | | | Closes bug #597104
* Fix leak in metadata codeAlexander Larsson2009-09-081-0/+1
|
* Fix leakAlexander Larsson2009-09-081-1/+4
| | | | Need to free /proc/fd/mountinfo contents after reading it.
* Fix memory leaksAlexander Larsson2009-09-071-0/+3
| | | | Found these with valgrind
* Don't call get_devnum on NULLAlexander Larsson2009-09-071-1/+2
|
* Fix various memory leaksAlexander Larsson2009-08-172-2/+4
| | | | | Testing a simple loop of writes long enough to cause a log wrap showed a bunch of leaks in valgrind. This fixes them all.
* Free MetaBuilder when rolling over logAlexander Larsson2009-08-171-5/+7
|
* Return success when rotating log succeededAlexander Larsson2009-08-171-3/+4
| | | | | We succeeded and then said we didn't, causing the set operation that caused the rotation to fail.
* Plug various metadata-related memleaksMatthias Clasen2009-08-011-1/+4
| | | | These were reported in bug 590456.
* Fix a symbol conflict with crc32Joe Marcus Clarke2009-07-313-4/+4
| | | | | On FreeBSD, the crc32 symbol conflicts with a function of the same name in libz, causing segfaults. Fixes bug 589786.
* Initialize the DBus errorCosimo Cecchi2009-07-201-0/+1
| | | | | | Initialize the DBus error structure before calling dbus_bus_request_name(). Fix bug #589015, patch by Patryk Zawadzki.
* Fix 'make distcheck'David Zeuthen2009-07-131-0/+5
| | | | | | | | | | | | | | In particular this snippet giomodulesdir=`pkg-config --variable=giomoduledir gio-2.0` is wrong as it breaks 'make distcheck' unless you can write to where the gio modules are installed. While this is true for jhbuild setups it is patently not true for normal setups. In fact, one could argue that glib's --with-gio-module-dir option is incompatible with how we build things, but that is more of a GLib problem.
* Plug some leaks and fix some strings.Cosimo Cecchi2009-06-302-2/+4
|
* Add header include protection and boilerplateAlexander Larsson2009-06-252-0/+53
|
* Implement a dbus based metadata get callAlexander Larsson2009-06-251-0/+191
|
* include locale.h for setlocale() callBenjamin Otte2009-06-251-0/+1
|
* Allow unsetting keys with the standard Set dbus operationAlexander Larsson2009-06-251-1/+20
| | | | Passing a key value type of Byte means unset that key.
* Fix deadlock in MetaTreeAlexander Larsson2009-06-231-1/+2
| | | | | | meta_tree_refresh calls meta_tree_init which may call meta_tree_refresh, which can deadlock due to the writer lock. Call meta_tree_refresh_locked instead.
* Update gitignore for new filesAlexander Larsson2009-06-231-0/+2
|
* Add various metadata test programsAlexander Larsson2009-06-235-0/+568
| | | | | These are useful to interactively test the metadata stores but are not installed.
* Add gvfsd-metadata update daemonAlexander Larsson2009-06-233-1/+592
| | | | | | | | | This daemon singleton handles updates to metadata stores. All clients that wishes to write metadata should talk to it via dbus. This way all writes are serialized to avoid data loss on concurrent writes.
* Allow MetaTree open to succeed with no fileAlexander Larsson2009-06-232-6/+18
| | | | | | You can check with meta_tree_exists if the file actually exists. This means that lookups work better for the initial set for a non-existing file.
* Add meta_tree_remove and meta_tree_copyAlexander Larsson2009-06-232-7/+126
|
* Fix metadata file rotationAlexander Larsson2009-06-231-14/+9
| | | | | | Ensure we open in read/write mode Use mmap to set the rotated flag to avoid any confusion with mixing write and mmap updates.
* Add workaround for ESTALE on NFS for metadata filesAlexander Larsson2009-06-231-5/+184
|
* Implement unset key in MetaTreeAlexander Larsson2009-06-231-2/+45
|
* Implement setting stringv in MetaTreeAlexander Larsson2009-06-232-3/+57
|
* Finish mtime reading support in MetaTreeAlexander Larsson2009-06-231-11/+58
|
* Finish the TODOs in the journal apply codeAlexander Larsson2009-06-231-3/+17
|
* Add some required MetaBuilder functionsAlexander Larsson2009-06-232-14/+143
| | | | | | meta_builder_remove removes paths (recursively) meta_builder_copy copies paths (recursively) metafile_set_mtime sets mtime
* Add stringv reading support to MetaTreeAlexander Larsson2009-06-231-13/+150
|