aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/timerlist.py
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2023-04-06 13:00:34 +0800
committerDavid Sterba <[email protected]>2023-04-17 19:52:19 +0200
commit604e6681e114d05a2e384c4d1e8ef81918037ef5 (patch)
tree584cbbedc8766e02f0be80659b486971fbeaf7b8 /scripts/gdb/linux/timerlist.py
parentf263a7c3a53b99f691b41e4925feb67f2e8544d0 (diff)
btrfs: scrub: reject unsupported scrub flags
Since the introduction of scrub interface, the only flag that we support is BTRFS_SCRUB_READONLY. Thus there is no sanity checks, if there are some undefined flags passed in, we just ignore them. This is problematic if we want to introduce new scrub flags, as we have no way to determine if such flags are supported. Address the problem by introducing a check for the flags, and if unsupported flags are set, return -EOPNOTSUPP to inform the user space. This check should be backported for all supported kernels before any new scrub flags are introduced. CC: [email protected] # 4.14+ Reviewed-by: Anand Jain <[email protected]> Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions