文件操作 - port_scale.sh
返回文件管理
返回主菜单
删除本文件
文件: /usr/src/linux-headers-5.15.0-113/tools/testing/selftests/drivers/net/mlxsw/spectrum/port_scale.sh
编辑文件内容
# SPDX-License-Identifier: GPL-2.0 source ../port_scale.sh port_get_target() { local should_fail=$1 local target target=$(devlink_resource_size_get physical_ports) if ((! should_fail)); then echo $target else echo $((target + 1)) fi }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件