History log of /haiku/src/add-ons/kernel/file_systems/ramfs/DataContainer.cpp
Revision Date Author Comments
# 425ac1b6 20-Jun-2023 Alexander von Gluck IV <kallisti5@unixzen.com>

refactor: Swap %Ld for %lld in all format usages

* %Ld is an undocumented alias for %lld in glibc.
* muslc doesn't implement it for this reason.
* While we will likely never drop %Ld support,
lets clean house and set a better example.

Change-Id: Id46dad3104abae483e80cc5c05d1464d3ecd8030
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6636
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 05b654c6 30-Nov-2022 Augustin Cavalier <waddlesplash@gmail.com>

ramfs: Fix SMAP violations in DataContainer.


# 396e3dfb 30-Nov-2022 Augustin Cavalier <waddlesplash@gmail.com>

ramfs: Switch from an embedded to a separately allocated small buffer.

This saves 16 bytes in the class vs. the old size, but more importantly
allows us to avoid allocating VMCaches and wasting an entire page for
any attribute larger than 32 bytes; instead, attributes can be up to
1024 bytes before we allocate a full page for them.

Unfortunately small files cannot take advantage of this optimization
right now as the cache is always used for them. I added a TODO about
this.


# c8641d3a 08-Jul-2022 PulkoMandy <pulkomandy@pulkomandy.tk>

ramfs: enable -Werror

Change-Id: I02600442bb2cb28182e6fd2da4eb849621c1b877
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5439
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 13249ba0 02-Sep-2019 Augustin Cavalier <waddlesplash@gmail.com>

ramfs: Fix dereference before NULL check in _DoCacheIO.

Should fix a KDL extrowerk ran into.


# 58a582ff 31-Aug-2019 Augustin Cavalier <waddlesplash@gmail.com>

ramfs: Set the vnode's cache object when opening files.

Now it is possible to run applications, do Git checkouts, etc.
on a ramfs (and those seem to work just fine -- a git checkout
followed by a git fsck both succeeded.)


# cbc07268 31-Aug-2019 Augustin Cavalier <waddlesplash@gmail.com>

ramfs: Overhaul block allocation to use a VMCache and physical pages.

This is a massive efficiency improvement as well as a large address
space usage savings. It also paves the way for file_map() support...


# 29143642 30-Aug-2019 Augustin Cavalier <waddlesplash@gmail.com>

ramfs: Fix debugging print macro invocations and use B_PRI*.


# b9795faf 30-Aug-2019 Augustin Cavalier <waddlesplash@gmail.com>

ramfs: Add MIT license header to all files lacking copyright info.

OK'ed by Ingo via email.


# a41d815c 22-Aug-2018 Augustin Cavalier <waddlesplash@gmail.com>

ramfs: Lots of fixes to the build.

* Store pointers in an addr_t instead of int32, for 64-bit's sake
* Use DebugSupport.h instead of userlandfs Debug.h and remove extra parentheses
* Create a header-only String class based on the userlandfs String and use it
* RecursiveLock instead of Locker.
* Jamfile cleanups and other misc. changes.

It isn't yet adapted to the new VFS API, so the build is still somewhat
broken.


# 224e7c42 06-Mar-2007 Ingo Weinhold <ingo_weinhold@gmx.de>

Mmh, apparently I have to check the copied directory itself in first.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20345 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 224e7c42697a7425059175c74edb62e706477d52 06-Mar-2007 Ingo Weinhold <ingo_weinhold@gmx.de>

Mmh, apparently I have to check the copied directory itself in first.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20345 a95241bf-73f2-0310-859d-f6bbb57e9c96