mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 04:15:23 +03:00
Kernel: Implement f_basetype
in statvfs
This commit is contained in:
parent
8209c2b570
commit
4ba39c8d63
Notes:
sideshowbarker
2024-07-17 14:32:20 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/4ba39c8d63 Pull-request: https://github.com/SerenityOS/serenity/pull/13333
@ -15,6 +15,8 @@ extern "C" {
|
|||||||
#define ST_RDONLY 0x1
|
#define ST_RDONLY 0x1
|
||||||
#define ST_NOSUID 0x2
|
#define ST_NOSUID 0x2
|
||||||
|
|
||||||
|
#define FSTYPSZ 16
|
||||||
|
|
||||||
struct statvfs {
|
struct statvfs {
|
||||||
unsigned long f_bsize;
|
unsigned long f_bsize;
|
||||||
unsigned long f_frsize;
|
unsigned long f_frsize;
|
||||||
@ -29,6 +31,8 @@ struct statvfs {
|
|||||||
unsigned long f_fsid;
|
unsigned long f_fsid;
|
||||||
unsigned long f_flag;
|
unsigned long f_flag;
|
||||||
unsigned long f_namemax;
|
unsigned long f_namemax;
|
||||||
|
|
||||||
|
char f_basetype[FSTYPSZ];
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -30,6 +30,8 @@ ErrorOr<FlatPtr> Process::do_statvfs(FileSystem const& fs, Custody const* custod
|
|||||||
|
|
||||||
kernelbuf.f_namemax = 255;
|
kernelbuf.f_namemax = 255;
|
||||||
|
|
||||||
|
(void)fs.class_name().copy_characters_to_buffer(kernelbuf.f_basetype, FSTYPSZ);
|
||||||
|
|
||||||
if (custody)
|
if (custody)
|
||||||
kernelbuf.f_flag = custody->mount_flags();
|
kernelbuf.f_flag = custody->mount_flags();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user