add error checking for ext2 superblock read
This commit is contained in:
parent
2e438081cf
commit
f8ea51441e
3 changed files with 20 additions and 0 deletions
14
include/kernel/vfs.h
Normal file
14
include/kernel/vfs.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/* SDPX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef _VFS_H_
|
||||
#define _VFS_H_
|
||||
|
||||
#include <kernel/common.h>
|
||||
#include <kernel/block.h>
|
||||
|
||||
struct file {
|
||||
struct inode *f_inode;
|
||||
uint64_t pos;
|
||||
uint32_t flags;
|
||||
};
|
||||
|
||||
#endif /* _VFS_H_ */
|
||||
Loading…
Reference in a new issue