mirror of
https://github.com/versity/scoutfs.git
synced 2026-06-07 20:22:35 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user