History log of /haiku/src/add-ons/kernel/file_systems/ufs2/kernel_interface.cpp
Revision Date Author Comments
# 782bb0fe 22-Oct-2023 Vladimir Serbinenko <phcoder@gmail.com>

ufs2: Fix compilation of ufs2_shell

Change-Id: Ib92666d70aabd68df7218600f84c32dbd86c974b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7061
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# a5bda648 22-Oct-2023 Vladimir Serbinenko <phcoder@gmail.com>

ufs2: Fix computation of partition size

Change-Id: If8e82b85c51db150c04d44ad11e0e82b29e14373
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7060
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 449929ad 20-Aug-2023 Vladimir Serbinenko <phcoder@gmail.com>

ufs2: Remove few optional stubs

Change-Id: I9502c09dad7c03b041abae65f6b7b8e56f3cbbff
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6864
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 95adf834 20-Aug-2023 Vladimir Serbinenko <phcoder@gmail.com>

ufs2: Add missing CheckPermissions

This brings us in-line with ext2

Change-Id: I0be7c4b1cbcd5a0a9f501e3e512b5bf6d0b86ffe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6865
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# bb83c2e2 20-Aug-2023 Vladimir Serbinenko <phcoder@gmail.com>

ufs2: Allow opening directory as read-only.

I find this API weird but apparently Tracker relies on it and if it
doesn't work it forgets to show icon on the desktop.

Change-Id: I162ff004406e28f56db5ac2293851aa30535109e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6863
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# f2ce9dda 20-Aug-2023 Vladimir Serbinenko <phcoder@gmail.com>

ufs2: Add close and free_cookie

Change-Id: Iff7c341ab91b61d57c1509fc0acb9f0a840d6bdd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6862
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 0f0d334a 20-Aug-2023 Vladimir Serbinenko <phcoder@gmail.com>

ufs2: Fix can_page().

Return is boolean and not a status.

Change-Id: I03b74d8d7b9b205428665059a3b9d4dc708857a0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6861
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 0b66f41b 20-Aug-2023 Vladimir Serbinenko <phcoder@gmail.com>

ufs2: Add free_blocks and fsh_name to fs_info()

Change-Id: Ibfbcb41db507ad33051391babfafb4f22a59d971
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6860
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 70ef3d35 20-Aug-2023 Vladimir Serbinenko <phcoder@gmail.com>

ufs2: Add st_nlink and st_blocks to stat()

Change-Id: I89279aa1b02c3814642f2e454408198b21cf7689
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6859
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# e62e8e24 20-Aug-2023 Vladimir Serbinenko <phcoder@gmail.com>

ufs2: Add access() support

Change-Id: I4c2fa12a623f0893c976430893f448f734794548
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6858
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 260e6bd0 20-Aug-2023 Vladimir Serbinenko <phcoder@gmail.com>

ufs2: Add unmount function

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


# f76f8716 20-Aug-2023 Vladimir Serbinenko <phcoder@gmail.com>

ufs2: Add rewind_dir functionality

Change-Id: I7033273d02131b38cf3de0632058710c5d2ff36c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6855
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# de4f20d4 20-Aug-2023 Vladimir Serbinenko <phcoder@gmail.com>

ufs2: Fix wrong lookup iteration

Passed size needs to be size of name buffer, not of length we compare to.
Fix the value and remove now unused parameter.

Change-Id: Idb69a0e78ba376751edf8b3df3635cd0af4c9460
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6850
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 21425cfc 20-Aug-2023 Vladimir Serbinenko <phcoder@gmail.com>

ufs2: Add missing include

Change-Id: I6351ed9b5c841955c6d76aecf470ac914abef9ad
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6847
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 711e2dc0 01-Dec-2021 Augustin Cavalier <waddlesplash@gmail.com>

Adjust all struct dirent creations (again), this time to use offsetof().

The dirent struct is not packed, so offsetof(dirent, d_name) != sizeof(dirent).
Thus in order not to waste the alignment bytes (which are significant,
on x86_64 at least, sizeof(dirent)==32, but offsetof(...)=26.)

This is also the most portable way to handle things, and should
work just fine in cross-platform code that has a non-zero-sized d_name.


# 9d242fb9 18-Nov-2021 Augustin Cavalier <waddlesplash@gmail.com>

file_systems & Tracker: Do not assume sizeof(dirent) contains 1 byte for the name.

At present, it does, but that is an oddity we have preserved from BeOS
that the next commit is going to remove. (This commit thus wastes 1 byte
without the following one.)

Most changes are pretty straightforward: only a +1 is needed,
and a few removed from sizing calculations. Some filesystems like UDF
originally passed back the length with the \0 included, so they have
been adjusted further. UFS2 had some other sizing problems which are also
corrected in this commit.


# 3255108d 07-Sep-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

ufs2: fix reading directories.

Main problem was the use of sizeof(dirent) instead of sizeof(struct
dirent) so it used the size of the pointer.

Change-Id: I7d9388235d583d942ada5e3650cf8320ff2be6cb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3197
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 14c58ad1 06-Sep-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

ufs2: implement scan_partition

Not needed by fs_shell but required to use the driver natively in Haiku.

Change-Id: I547ab4c0637230d447f437cb47a419734a0401e7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3196
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# f563d6e6 23-Aug-2020 Suhel Mehta <suhelmehta@outlook.com>

ufs2: Reading symbolic links

Symbolic links are now showing path and relative path can be tested.

Change-Id: I47820a475d78d8090c02564f698e72dd8fbaa3a1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3171
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 057a3b38 25-Jul-2020 Suhel Mehta <suhelmehta@outlook.com>

ufs2: Implementing read function

Attempting to read data from direct blocks and single indirect
blocks even if the data stored is not in continous blocks and
DirectoryIterator now uses ReadAt to iterate through directories.

Change-Id: I8156aba53782da8c2bb4481db611ae26d8881b35
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3088
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 239a1c35 12-Jun-2020 Suhel Mehta <mehtasuhel@gmail.com>

ufs2: implementing open_dir and read_dir function

Root directory is read sucessfully.

Change-Id: I8bdc8c1a52edb679a6cb4b5f70e7f42eb2b2c8f1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2907
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 589de479 22-May-2020 Suhel Mehta <mehtasuhel@gmail.com>

ufs2: Implementing read_stat function and fs_info

Change-Id: I337c53c017f00f480af7ac94a5774b39eb5255db
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2773
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# ac754f75 14-May-2020 Suhel Mehta <mehtasuhel@gmail.com>

ufs2: Reading inodes of ufs2.

Now file system can be mounted sucessfully.

Adding documentation for using the code.

Change-Id: I2bd1b72e06ffc3b5f6306aaa69c59becf4cb882b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2696
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 11d6332f 10-May-2020 Suhel Mehta <mehtasuhel@gmail.com>

ufs2: Super block is detected successfully.

Change-Id: I5e99b889399fa2d7f477efb547a5923c2c79a6f9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2658
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# a7725a42 20-Mar-2020 SuhelMehta9 <suhelmehta@outlook.com>

ufs2: Add superblock, volume, identify() and mount()

Change-Id: I27a492145fe1a365ceea6d172e332167513f5c3b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2381
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 42ddb0b3 13-Mar-2020 SuhelMehta9 <suhelmehta@outlook.com>

Making of UFS file system

System dependencies and kernel interface code has been added.

Change-Id: I770ad6b906ca41d4d84d374cea209e22149fd727
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2344
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>