Import backup from 2005-03-11

This commit is contained in:
Josh Holtrop 2005-03-11 22:00:00 -05:00
parent dfeabc39aa
commit bb8ff09e3f

View File

@ -30,7 +30,7 @@ vfs_fs_t ext2_driver = {ext2_mount_super, ext2_umount_super, ext2_stat,
int ext2_init(int fsID)
{
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;
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);
if ( new_blocks == current_blocks )
return 0;
// TODO: resize
}