clang-format

This commit is contained in:
2024-09-10 13:03:02 -04:00
parent 53c617d779
commit d66450e427
381 changed files with 28864 additions and 34170 deletions

View File

@@ -30,12 +30,10 @@
#ifndef _SFS_H_
#define _SFS_H_
/*
* Header for SFS, the Simple File System.
*/
/*
* Get abstract structure definitions
*/
@@ -52,23 +50,23 @@
* In-memory inode
*/
struct sfs_vnode {
struct vnode sv_absvn; /* abstract vnode structure */
struct sfs_dinode sv_i; /* copy of on-disk inode */
uint32_t sv_ino; /* inode number */
bool sv_dirty; /* true if sv_i modified */
struct vnode sv_absvn; /* abstract vnode structure */
struct sfs_dinode sv_i; /* copy of on-disk inode */
uint32_t sv_ino; /* inode number */
bool sv_dirty; /* true if sv_i modified */
};
/*
* In-memory info for a whole fs volume
*/
struct sfs_fs {
struct fs sfs_absfs; /* abstract filesystem structure */
struct sfs_superblock sfs_sb; /* copy of on-disk superblock */
bool sfs_superdirty; /* true if superblock modified */
struct device *sfs_device; /* device mounted on */
struct vnodearray *sfs_vnodes; /* vnodes loaded into memory */
struct bitmap *sfs_freemap; /* blocks in use are marked 1 */
bool sfs_freemapdirty; /* true if freemap modified */
struct fs sfs_absfs; /* abstract filesystem structure */
struct sfs_superblock sfs_sb; /* copy of on-disk superblock */
bool sfs_superdirty; /* true if superblock modified */
struct device *sfs_device; /* device mounted on */
struct vnodearray *sfs_vnodes; /* vnodes loaded into memory */
struct bitmap *sfs_freemap; /* blocks in use are marked 1 */
bool sfs_freemapdirty; /* true if freemap modified */
};
/*
@@ -76,5 +74,4 @@ struct sfs_fs {
*/
int sfs_mount(const char *device);
#endif /* _SFS_H_ */