Mathias Gruber
49830eb512
Thread and I/O priority for MacOS X.
2021-01-22 18:16:27 +01:00
Mathias Gruber
a58442df61
Review of OSX porting issues
...
Fixed general compile errors.
Fixed a bug in caused by different stavfs semantics between Linux and BSD. This caused the computing of invalid disk sizes. The use of 32-bit data-types on BSD were also causing truncation errors for a multiplication.
2020-12-29 17:06:31 +01:00
Martin
b903f584e0
Handle issue where directory doesn't get iterated forward because of error
2020-07-05 21:19:13 +02:00
Martin
e306f93a4a
Handle EINVAL error return of BTRFS_IOC_SYNC
...
(cherry picked from commit dced36d9aa )
2019-10-24 21:42:05 +02:00
Martin
4304e77c0a
Fall back to sync() if syncfs returns EINVAL
2019-10-16 12:52:30 +02:00
Martin
58dadfa56f
Use different shell path for Android build (uses /system/bin/sh per default)
2019-09-18 17:53:21 +02:00
Martin Raiber
8d707ce52b
Fix recursive directory deletion on Linux/FreeBSD
2019-08-04 14:53:13 +02:00
Martin
1ffefce796
Use more recent android sdk version to get posix_spawn support
2019-07-11 22:59:01 +02:00
Martin
c665c6ac4e
Build Linux binaries with Android NDK
2019-07-06 21:57:18 +02:00
Martin
13b78ae03e
Try using BTRFS_IOC_SYNC before falling back to syncfs
...
(cherry picked from commit c59914fdeff267aee23fe89adc5e43f80fbd3424)
# Conflicts:
# urbackupcommon/os_functions_lin.cpp
2019-07-05 16:35:29 +02:00
Martin
34241021eb
Make syncfs() error fail file backups
...
(cherry picked from commit cfcf49f11632bc4fd2da322f4265302f776a7ca3)
2019-07-05 15:43:02 +02:00
Martin Raiber
d2d49c2e39
Use heap for recursion when deleting non-empty directory
2019-06-22 22:33:09 +02:00
Martin Raiber
2be94b8df2
Fix build on Linux
2019-05-13 22:34:20 +02:00
Martin
7d56021371
Add ZSTD transfer compression
2019-04-19 16:47:49 +02:00
Martin
f25a1e1212
Correctly return symlink info in getFileMetadata
...
(cherry picked from commit ac83bedc31510567f461a4d2037a071f00a7accc)
2019-04-19 12:17:19 +02:00
Martin
1d24c98176
Set e flag in popen to open the pipe with O_CLOEXEC
...
(cherry picked from commit 51806f1b40ade6528cf16910e3f10f6cbd9c2f4e)
2018-11-19 13:14:53 +01:00
Martin
e64902a921
Fix 64bit types on FreeBSD
...
(cherry picked from commit 6b50931657 )
2018-06-01 10:52:23 +02:00
Martin
db11881a4c
Always use 64bit fsblkcnt_t
...
(cherry picked from commit 6e41d07fb77be63bb33519b72fb1ce6f17de5c91)
2018-04-07 18:45:56 +02:00
Martin
e563e548e8
Fix reflink detection and image backup with reflink
2018-04-02 01:39:13 +02:00
Martin
dcc0495fad
Reset errno if stat fails
...
(cherry picked from commit 1c4dd66f4c4697f9111a1a8fb96a336b46ac866e)
2018-02-17 19:36:22 +01:00
Martin
9818391f1c
Add sepecial file info
2017-10-18 23:10:17 +02:00
Martin
3e0e610eb5
Fix build on non-Linux
2017-06-29 18:40:19 +02:00
Martin Raiber
0a05aef3df
Merge branch 'dev' of ssh://192.168.0.40:/home/git/urbackup_backend into dev
2017-06-16 12:55:25 +02:00
Martin Raiber
7e96dfeca5
Prevent total/free space 64bit overflow
...
(cherry picked from commit a422004e07b67b0d5c8c9188bd449d066b058b12)
2017-06-16 12:52:45 +02:00
Martin
63c7f9449e
More prio levels
...
(cherry picked from commit b9ef0c555efc5020cf8b6a7f4256a6522521176b)
# Conflicts:
# urbackupcommon/os_functions.h
# urbackupcommon/os_functions_win.cpp
2017-06-06 16:27:46 +02:00
Martin
ae615bd4a3
Fix utimes usage
2017-02-19 16:46:05 +01:00
Martin
6c0b860d58
Handle utimensat not being available
2017-02-18 15:10:09 +01:00
Martin
8ea5c588fc
Open path read only for syncfs
...
(cherry picked from commit b68296362ee08d4da75f56ee7f68dac2198ebd49)
2017-01-24 15:13:05 +01:00
Martin
30cda67ab7
Reset CPU priority as well...
2016-12-12 23:27:20 +01:00
Martin
37192e7251
Reset CPU priority as well...
2016-12-12 23:24:37 +01:00
Martin
214b3936ee
Reset IO priority of new threads on Linux
2016-12-12 23:20:26 +01:00
Martin
b1280039d3
Fix setting thread priority for the whole process
2016-12-12 23:10:20 +01:00
Martin
065c35b3b6
Assert that thread priorities are reset correctly
2016-12-12 22:49:55 +01:00
Martin
aaa796b25c
Do not prevent usn from going negative anymore
2016-12-12 16:20:03 +01:00
Martin
929d17af30
Fix setting IO prio with IOPRIO_CLASS_NONE
2016-12-01 14:30:00 +01:00
Martin
b784034c32
Fix increasing priority on Linux
...
(cherry picked from commit 205886567358d52b7cfcebbc1c8de51eacba6544)
2016-10-08 17:19:19 +02:00
Martin
7634b4f6d2
Improve symlink file deletion
2016-10-05 15:41:47 +02:00
Martin
4ab8aef1c5
Prioritize web interface requests
...
(cherry picked from commit 666f5b449b5505796a04ccd0228afd0986f40570)
# Conflicts:
# urbackupcommon/os_functions.h
# urbackupcommon/os_functions_win.cpp
2016-10-04 13:38:36 +02:00
Martin
11c8fa8aa6
Fix symbolic link to file deletion on Windows
2016-09-29 11:35:06 +02:00
Martin Raiber
f7d45e0075
Improved error logging
2016-09-04 09:52:53 +02:00
Martin Raiber
9c2148e400
Improved image backup read error handling
2016-08-26 01:22:59 +02:00
Martin
13362a5871
Fix: Propagate error in copy_file and make os_get_symlink_target more efficient
2016-07-26 03:13:36 +02:00
Martin
c700f77822
Propagate error in copy_file and make os_get_symlink_target more efficient
2016-07-26 03:07:54 +02:00
Martin
e5a6f2cf8c
Live storage migration
2016-07-20 21:20:30 +02:00
Martin
76cdf67413
Check for syncfs and posix_spawn
2016-06-11 15:29:09 +02:00
Martin
013bd6c0b9
Check for syncfs and posix_spawn
2016-06-11 15:23:59 +02:00
Martin
d756df13f1
Fix compile
2016-06-01 00:30:05 +02:00
Martin
3c2ede5a49
Do not leak fd
2016-06-01 00:25:24 +02:00
Martin
f76a0a8639
Sync backup storage file system before marking file backup as complete
2016-06-01 00:14:16 +02:00
Martin
68b80f81fd
Fix os_set_file_time for FreeBSD directories
2016-05-05 13:08:01 +02:00