Initial mount integration

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@222 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2007-05-13 21:47:36 +00:00
parent 45ef799769
commit ac75c60975

View File

@ -129,7 +129,7 @@ static ssize_t up_read(FAR struct inode *inode, unsigned char *buffer,
memcpy(buffer, memcpy(buffer,
&src[start_sector*LOGICAL_SECTOR_SIZE], &src[start_sector*LOGICAL_SECTOR_SIZE],
nsectors*LOGICAL_SECTOR_SIZE); nsectors*LOGICAL_SECTOR_SIZE);
return OK; return nsectors;
} }
} }
return -EINVAL; return -EINVAL;
@ -155,7 +155,7 @@ static ssize_t up_write(FAR struct inode *inode, const unsigned char *buffer,
memcpy(&dest[start_sector*LOGICAL_SECTOR_SIZE], memcpy(&dest[start_sector*LOGICAL_SECTOR_SIZE],
buffer, buffer,
nsectors*LOGICAL_SECTOR_SIZE); nsectors*LOGICAL_SECTOR_SIZE);
return OK; return nsectors;
} }
} }
return -EINVAL; return -EINVAL;