Import backup from 2005-03-11
This commit is contained in:
parent
dfeabc39aa
commit
bb8ff09e3f
@ -30,7 +30,7 @@ vfs_fs_t ext2_driver = {ext2_mount_super, ext2_umount_super, ext2_stat,
|
|||||||
int ext2_init(int fsID)
|
int ext2_init(int fsID)
|
||||||
{
|
{
|
||||||
vfs_fs_t *fs;
|
vfs_fs_t *fs;
|
||||||
if (( fs = New(vfs_fs_t) )) // give the VFS system our FS structure
|
if (( fs = New(vfs_fs_t) )) // give the VFS our FS structure
|
||||||
{
|
{
|
||||||
*fs = ext2_driver;
|
*fs = ext2_driver;
|
||||||
vfs_register_fs(fsID, fs);
|
vfs_register_fs(fsID, fs);
|
||||||
@ -414,6 +414,7 @@ int ext2_resize_inode(vfs_mount_t *mount, u32_t inode_number, u32_t new_size)
|
|||||||
int new_blocks = (new_size + (1024 << super->s_log_block_size) - 1) >> (10 + super->s_log_block_size);
|
int new_blocks = (new_size + (1024 << super->s_log_block_size) - 1) >> (10 + super->s_log_block_size);
|
||||||
if ( new_blocks == current_blocks )
|
if ( new_blocks == current_blocks )
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// TODO: resize
|
// TODO: resize
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user