Merge pull request #14 from agrover/fix-jira-202

utils: Do not assert if release is given unaligned offset or length
This commit is contained in:
Zach Brown
2021-02-01 09:46:01 -08:00
committed by GitHub

View File

@@ -8,7 +8,6 @@
#include <errno.h>
#include <string.h>
#include <limits.h>
#include <assert.h>
#include <argp.h>
#include "sparse.h"
@@ -208,9 +207,6 @@ static int do_release(struct release_args *args)
return ret;
}
assert(args->offset % SCOUTFS_BLOCK_SM_SIZE == 0);
assert(args->length % SCOUTFS_BLOCK_SM_SIZE == 0);
ioctl_args.offset = args->offset;
ioctl_args.length = args->length;
ioctl_args.data_version = args->data_version;