Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 3 commits
  • 4 files changed
  • 0 commit comments
  • 2 contributors
Commits on Dec 31, 2013
graysky update license b48f7af
Commits on Jan 03, 2014
Timofey Nefelim4ag [RFC improve performance for CoW]
I guided by http://goo.gl/tgqL8n
For rsync added --inplace, also added --no-whole-file,
--dalay-updates deleted (conflict with --inplace).
But i don't know how this affect for NoCoW fs.
To cp  added --reflink=auto - this reduce time to create failsafe recovery copy, safe on NoCoW
in my case dir=1.5G on ssd,btrfs
cp -a : 18s
cp -a --reflink=auto : 1.7s
4aa61d5
graysky better for CoW file systems like btrfs 2b6f3e4
Showing with 9 additions and 5 deletions.
  1. +4 −0 CHANGELOG
  2. +1 −1  MIT
  3. +1 −1  Makefile
  4. +3 −3 common/profile-sync-daemon.in
4 CHANGELOG
View
@@ -1,3 +1,7 @@
+03-Jan-2014
+v5.45
+RFC improve performance for CoW filesystems such as BTRFS (TimofeyTitovets).
+
06-Nov-2013
v5.44
Fixed typo in config file relating to google-chrome-unstable (brenix).
2  MIT
View
@@ -1,4 +1,4 @@
-Copyright (c) 2013 graysky
+Copyright (c) 2013-2014 graysky
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2  Makefile
View
@@ -1,4 +1,4 @@
-VERSION = 5.44
+VERSION = 5.45
PN = profile-sync-daemon
PREFIX ?= /usr
6 common/profile-sync-daemon.in
View
@@ -446,7 +446,7 @@ ungraceful_state_check() {
[[ -h "$DIR" ]] && unlink "$DIR"
NOW=$(date +%Y%m%d_%H%M%S)
if [[ -d "$BACKUP" ]]; then
- cp -a "$BACKUP" "$BACKUP-crashrecovery-$NOW"
+ cp -a --reflink=auto "$BACKUP" "$BACKUP-crashrecovery-$NOW"
mv "$BACKUP" "$DIR"
fi
fi
@@ -484,11 +484,11 @@ do_sync() {
# sync the tmpfs targets to the disc
if [[ -e $DIR/.flagged ]]; then
- rsync -aog --delete-after --delay-updates --exclude .flagged "$DIR/" "$BACKUP/"
+ rsync -aog --delete-after --inplace --no-whole-file --exclude .flagged "$DIR/" "$BACKUP/"
else
# initial sync
# keep user from launching browser while rsync is active
- rsync -aog --delay-updates "$BACKUP/" "$VOLATILE/$user-$browser$suffix/"
+ rsync -aog --inplace --no-whole-file "$BACKUP/" "$VOLATILE/$user-$browser$suffix/"
ln -s "$VOLATILE/$user-$browser$suffix" "$DIR"
chown -h $user:$group "$DIR"
touch "$DIR/.flagged"

No commit comments for this range

Something went wrong with that request. Please try again.