> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/zfs/shou-ce-ye/xi-tong-guan-li-ming-ling-system-administration-8/zfs-wait.8.md).

# zfs-wait(8)

## 名称

`zfs-wait` — 等待 ZFS 文件系统中的活动停止

## 概述

```sh
zfs wait [-t 活动[,活动]…] 文件系统
```

## 说明

等待指定文件系统中给定类型的所有后台活动停止。活动停止可能是因为它已经完成，也可能是因为文件系统已被销毁或卸载。如果未指定任何活动，该命令会等待下列列出的每一种类型的后台活动都停止。如果给定类型当前没有正在进行的活动，该命令会立即返回。

以下是 `activity` 的可能取值，以及各自等待的内容：

### `deleteq`

文件系统的内部删除队列清空

注意，内部删除队列要等到所有大文件都有时间被完全销毁、并且所有指向已取消链接文件的打开文件句柄都关闭之后，才会完成清空。

## 参考文献

lsof(8)

2022 年 7 月 11 日


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://book.bsdcn.org/zfs/shou-ce-ye/xi-tong-guan-li-ming-ling-system-administration-8/zfs-wait.8.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
