CLI 命令参考//disk/btrfs/subvolume
/disk/btrfs/subvolume
subvolume
/disk/btrfs/subvolume 的 RouterOS 目录参考。
disk/btrfs/subvolume
Conditions: !smips
Syscap: storage
Type: Directory
| 标志 | 名称 | 描述 |
|---|
* | default | The entry is the root subvolume of the file system, shown as <FS_ROOT>; it is created automatically with the file system. |
S | snapshot | 子卷是使用 parent 参数创建的快照。 |
r | read-only | 子卷为只读。 |
D | dead | 子卷已失效,例如正在被移除。 |
M | mounted | 子卷已挂载(mount=yes)在其 mountpoint 下。 |
| 参数 | 类型 | 描述 |
|---|
fs * | enum | 子卷所属 Btrfs 文件系统的标签,如 filesystem 中所示。 |
parent | enum | 新子卷创建自的子卷。使用 parent 时,新子卷将成为父卷的快照,并共享创建时的内容。参见 Btrfs 子卷和快照。 |
name | string | 子卷名称。类似路径的名称(例如 Snapshots/backup-10)会将子卷放在另一个子卷内;此时 top-level 显示包含它的子卷。 |
read-only | bool | 子卷是否为只读(r - READ-ONLY 标志)。默认值:no。 |
mount | bool | 子卷是否挂载在其 mountpoint 下(M - MOUNTED 标志)。默认值:no。 |
mountpoint | string | 子卷挂载的挂载点,相对于文件系统挂载点。默认值为子卷名称。 |
| 只读参数 | 类型 | 描述 |
|---|
top-level | enum | Top-level subvolume the subvolume is located in, for example Snapshots; <FS_ROOT> when the subvolume sits directly under the file system root. |
fullname | string | 子卷在文件系统内的完整路径,例如 Snapshots/backup-10。 |
uuid | string | 子卷的 UUID。 |
received-uuid | string | 使用 Btrfs transfer 接收子卷时发送方上的子卷 UUID;本地创建的子卷为空。 |
creation-time | date | 子卷创建的日期和时间。 |
subvolume-id | num | 子卷的 Btrfs ID 编号。 |
generation | num | 子卷的 Btrfs 事务生成号。 |
dead | bool | 子卷是否已失效(D - DEAD 标志)。 |
snapshot | bool | 子卷是否为快照(S - SNAPSHOT 标志)。 |
send-trans-id | num | 子卷参与的最后一次发送的 Btrfs 事务 ID。 |
send-time | date | 子卷最后一次通过 Btrfs 传输发送的时间。 |
recv-trans-id | num | 创建该子卷的接收操作的 Btrfs 事务 ID。 |
recv-time | date | 子卷通过 Btrfs 传输接收的时间。 |
snapshots | multi { array-id, snapshot: enum } | 从此子卷创建的快照。 |
path | string | 子卷通过 Btrfs transfer 接收到的路径(接收方的 file=);本地创建的子卷为空。 |