[sheepdog] [PATCH v4 5/5] sheepfs: remove the align constraint

Liu Yuan namei.unix at gmail.com
Thu May 23 05:27:25 CEST 2013


Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 sheepfs/volume.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/sheepfs/volume.c b/sheepfs/volume.c
index ae1f520..4000e97 100644
--- a/sheepfs/volume.c
+++ b/sheepfs/volume.c
@@ -153,11 +153,6 @@ static int volume_rw_object(char *buf, uint64_t oid, size_t size,
 	pthread_rwlock_unlock(&vdi_inode_tree_lock);
 
 	if (is_data_obj(oid)) {
-		if (off % SECTOR_SIZE || size % SECTOR_SIZE) {
-			sheepfs_pr("offset or size not aligned\n");
-			return -1;
-		}
-
 		idx = data_oid_to_idx(oid);
 		assert(vdi);
 		if (!vdi->inode->data_vdi_id[idx]) {
-- 
1.7.9.5



More information about the sheepdog mailing list