Otherwise we might fail with B_NO_MEMORY, or wait for long periods of
time, which we don't want to do in such a critical routine.
Should improve system responsiveness (or even prevent application
crashes) under high memory pressure.
MAIL:thread is added to all incoming mails and when replying to a mail.
This change adds it also to new mails that are sent.
It also sets the subject and thread to "No Subject" when empty.
Change-Id: I377b50022b203bff960b7f78ef5ff55d39a6e08e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10264
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
5c254dff8c updated FreeType build packages for x86_64 and x86_gcc2,
including a change in app_server to adapt to a different pointer type
in a FT_Outline member. Other arches are still using older versions
of FreeType, though, so they need the older type.
Change-Id: I4ad934821a338e93e3827069618948e77eae66e1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10306
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Máximo Castañeda <[email protected]>
* Put each package on its own line. This mirrors the earlier
refactor of image rules.
* Drop a few packages with library-only provides. The build
system will pull them in automatically as needed (libicns, etc.)
The non-"_np" versions were exported, but not declared in the header.
Do that, and also make the "_np" versions the alias, as these are
specified in POSIX-2024.
* To avoid "micro-padding" around the scrollview, use a negative
inset to have the scrollview join borders with the window.
* Make it a regular B_DOCUMENT_WINDOW to have a full-sized resizing
corner.
Fixes#19915
Change-Id: I879eca719f91f2ae67236ecfb4cb8be1b280f2fc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10267
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Axel Dörfler <[email protected]>
Instead of triggering a Kernel Debugging Land (KDL) session when
encountering an unsupported compression type (like ZSTD), the driver
now returns B_NOT_SUPPORTED and logs an error.
This keeps the system stable and allows the VFS to handle the error
gracefully.
Fixes#19914
Change-Id: I5f43eef1c04982014430de63f3840af0d6cfefb0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10263
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
* Currently there is no dependency between haiku_unittests.hpkg
and unittests target. unittests needs to be built before building
test image.
Change-Id: I7c729095db74687b154a4880fde7f15b474c3590
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2080
Reviewed-by: Kacper Kasper <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Add a way to request allocation of a specific block run to
BlockAllocator. Use it to allocate the new location for the journal.
Change-Id: I276de77d937253baa312049ad2964849c5e9b68b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10057
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
All operations which allocate blocks must follow the block range
restriction during a resize operation. Since we do the resize live,
operations not originating from the resize work must also follow the
restriction. To implement that, we need to handle the restriction
directly in the BlockAllocator.
Change-Id: Ie6e06407e7ad2c0396818e2ef02be46d2bd01b99
Reviewed-on: https://review.haiku-os.org/c/haiku/+/932
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
* Fix seek calls of types SEEK_DATA and SEEK_HOLE for filesystems that
return B_UNSUPPORTED so that the fallback stat() based method is used
in those cases.
* Fix select call handling for filesystems that return B_UNSUPPORTED
by immediately notifying the select event (as would happen if the fs did
not support select at all).
Fixes#19251
Change-Id: I6a861499365f2abd62c2f7a74107dd4a7c1b44a0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10245
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
... instead of GetIterator(). This allows us to avoid loading the
cache entirely in SetTo(), and allows consumers to read the cache
much more efficiently than loading it all into memory and then
freeing it again afterwards.
This technically breaks API/ABI, however the Package Kit APIs
are not considered stable (I don't think.)
All consumers adjusted. As we build the host tools with modern GCC
only, I made update_package_requires use a C++11 lambda function.
All others use out-of-line static methods.
"time pkgman list-repos -v" (which has to read the whole cache)
is ~0.5s before this change, and ~0.25s after this change,
on my test VM.
Change-Id: I6976b4cf5eb846fc925ed199dc00eb227fc81344
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10247
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Andrew Lindesay <[email protected]>
POSIX-2024 says:
> There is no correlation between values of the st_blocks and
> st_blksize, and the f_bsize (from <sys/statvfs.h>) structure members.
Some code in Haiku has mixed that up in the past (e.g. the write_overlay).
This will allow a constant to be used instead, clarifying what's happening.
POSIX-2024 does not actually require this constant, but it does say:
> Traditionally, some implementations defined the multiplier for
> st_blocks in <sys/param.h> as the symbol DEV_BSIZE.
And indeed, glibc, musl, and FreeBSD (at least) all define it.
So it seems to make sense for us to do the same.
Related to #19251.
* Imported traceroute6 from NetBSD HEAD (the FreeBSD version has too
many extensions that are not supported by Haiku, making the NetBSD a
better fit)
Change-Id: Ie2b359f7a8dcf94b7564f02226806801feda84ce
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10205
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
The application name should never appear in a translatable string.
Otherwise it will always show translated in the app, even if the
user configured the Locale prefs to not "Translate app and folder
names".
Always concatenate the B_TRANSLATE_SYSTEM_NAME'ed string.
Use a regular BAboutWindow in the Sounds prefs.
Change-Id: I85f02a3aa6c76b22266d495cf7514cc499bc31e8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10234
Reviewed-by: Adrien Destugues <[email protected]>