mirror of
https://github.com/versity/scoutfs.git
synced 2026-08-27 19:36:52 +00:00
utils: Do not assert if release is given unaligned offset or length
This is checked for by the kernel ioctl code, so giving unaligned values will return an error, instead of aborting with an assert. Signed-off-by: Andy Grover <agrover@versity.com>
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