changed some uints to inode_t to avoid type conversion  warnings