acfs

package module
v0.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: BSD-3-Clause Imports: 24 Imported by: 3 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ACFS

Root-confined filesystem operations for Arcane and other Go applications.

CI Go Reference License

ACFS provides efficient directory listing, recursive walking, metadata, and streaming file operations without spawning a process for every entry. Logical paths are confined with os.Root, and directory traversal never follows symlinks.

[!IMPORTANT] This module is under development. The API is not stable and may change before v1.0.0.

Getting started

go get kit.getarcane.app/acfs@latest
root := acfs.Root{Path: "/var/lib/docker/volumes/example/_data"}
entries, err := root.List(ctx, "/")
if err != nil {
	return err
}

_, err = root.Walk(ctx, "/logs", types.WalkOptions{}, func(entry types.Entry) error {
	fmt.Println(entry.Path, entry.Mode, entry.Size)
	return nil
})

Root confines every operation to Root.Path using logical paths. Host (acfs.Host{}) offers the same methods on absolute host paths without confinement, and the FS interface covers what both share:

  • Reading: List, ListEach, Walk, Stat, Exists, OpenRead, OpenReadSeek, ReadFile, ReadTo
  • Writing: Write, WriteFrom, WriteAt, OpenFile, CreateTemp, Sync
  • Directories and names: Mkdir, MkdirAll, MkdirTemp, Rename, Remove, RemoveAll
  • Attributes and links: Chmod, Chown, Lchown, Chtimes, Symlink, Readlink

Root adds LogicalPath, CopyTo, MirrorTo, and ordered batch Apply; Host adds CopyDir and MirrorDir. Public filesystem and protocol DTOs live in types. An Entry carries UID, GID, Device, and Inode on Unix, so callers can copy ownership or compare identity like os.SameFile.

Sync flushes a file or directory to stable storage. acfs.Host{Special: true} lets reads and OpenFile open FIFOs and character devices such as /dev/stdin; a special file's OpenRead size is -1.

On a Root, links inside the root are handled per operation:

  • Resolve links in the parent path: Write, WriteFrom, WriteAt, Mkdir, MkdirAll, MkdirTemp, CreateTemp, Rename, Remove, RemoveAll, Sync, and a read-only OpenFile.
  • Refuse any link in the path with ErrSymlink: Chmod, Chown, Lchown, Chtimes, Symlink, a writing OpenFile, and Apply.
  • A final link is refused by Write with InPlace, a writing OpenFile, Chmod, Chown, Chtimes, and Sync. Lchown, Remove, RemoveAll, and Rename act on the link itself.

Symlink only creates links that stay inside the root, stored as relative targets. On Linux mutations act through a parent directory descriptor opened without following symbolic links, so concurrent writers cannot redirect them.

Threat model
  • Root's own operations never read, write, or follow a link outside the root.
  • A process that can concurrently write inside the root can already create links and replace files there, so ACFS does not protect root contents from it.
  • ACFS will not act as a confused deputy for such a process. An atomic write or Apply that finds its staged file or published name replaced returns ErrReplaced, not success. This narrows the race window but does not close it.
  • A directory that ACFS has opened and another process then moves outside the root stays writable through the open descriptor until the operation finishes.

OpenFile takes typed options instead of os.O_* flags:

lock, err := acfs.Host{}.OpenFile(ctx, "/run/arcane/lock", acfs.OpenOptions{
	Write: true, Create: true, Exclusive: true, Mode: 0o600,
})

Use typed options to choose how a byte-slice write replaces a file:

err = root.Write(ctx, "/config.yaml", data, acfs.WriteOptions{Mode: 0o644})
err = root.Write(ctx, "/config.yaml", data, acfs.WriteOptions{Mode: 0o644, InPlace: true})
err = root.Write(ctx, "/config.yaml", data, acfs.WriteOptions{Mode: 0o644, Exclusive: true})

Writes are atomic by default. InPlace preserves existing file inodes for bind mounts and refuses final symlinks; callers must handle partial writes on failure. Exclusive publishes the complete file only if the target is absent, otherwise returning ErrAlreadyExists; it cannot be combined with InPlace.

CLI

GoReleaser publishes the static acfs Linux binary for every architecture used by the Arcane tools image:

acfs list|walk|stat|read|write|mkdir|remove|apply|version

list, stat, and apply emit JSON. list --limit N emits at most N entries and adds "truncated":true when it left any out. walk emits NDJSON with a mandatory end record and supports depth and entry limits. read emits an ARCW protocol-v2 header followed by raw file content. Failures are emitted as structured JSON only on stderr.

License

ACFS is released under the BSD 3-Clause License.

Documentation

Overview

Package acfs provides filesystem operations for Arcane, either confined to a root directory (Root) or on absolute host paths (Host).

Root never reads, writes, or follows a link outside its Path. Some mutations resolve links inside the root in the parent path and others refuse them; the README lists which. On Linux mutations act on a parent opened by descriptor without following links; other systems check, then act by path. A write that finds its staged or published file replaced reports ErrReplaced.

Operating system errors are wrapped, so errors.Is with fs.ErrNotExist, fs.ErrExist, and os.ErrPermission keeps working. RemoveAll ignores a missing target; Remove reports it.

Writes are atomic by default and stage a temporary file with the reserved ".acfs-write-" prefix, which paths may not use and listings hide.

Index

Constants

View Source
const (
	// StreamHeaderSize is the number of bytes in an acfs read header.
	StreamHeaderSize = 16
)

Variables

View Source
var (
	// ErrInvalidPath indicates that a logical workspace path is malformed.
	ErrInvalidPath = kitfs.ErrInvalidPath
	// ErrOutsideRoot indicates that a path or symlink escapes the workspace root.
	ErrOutsideRoot = errors.New("path escapes workspace root")
	// ErrSymlinkLoop indicates that symlink resolution exceeded its safe limit.
	ErrSymlinkLoop = errors.New("too many symbolic links")
	// ErrIsDirectory indicates that a file operation targeted a directory.
	ErrIsDirectory = errors.New("path is a directory")
	// ErrSizeMismatch indicates that a write did not contain its declared size.
	ErrSizeMismatch = errors.New("input size does not match declared size")
	// ErrRootRemoval indicates an attempt to remove the workspace root.
	ErrRootRemoval = errors.New("cannot remove workspace root")
	// ErrSymlink indicates that a mutation path contains a symbolic link.
	ErrSymlink = errors.New("symbolic links are not allowed for mutations")
	// ErrAlreadyExists indicates that a create or move destination exists.
	ErrAlreadyExists = errors.New("destination already exists")
	// ErrNotDirectory indicates that a required directory is not a directory.
	ErrNotDirectory = errors.New("path is not a directory")
	// ErrNotFile indicates that a required regular file is not a regular file.
	ErrNotFile = errors.New("path is not a regular file")
	// ErrNotEmpty indicates that a non-recursive directory removal was requested.
	ErrNotEmpty = errors.New("directory is not empty")
	// ErrInvalidOpenOptions indicates an OpenOptions combination that cannot open a file.
	ErrInvalidOpenOptions = errors.New("invalid open options")
	// ErrInvalidWriteOptions indicates a WriteOptions combination that cannot write a file.
	ErrInvalidWriteOptions = errors.New("invalid write options")
	// ErrReplaced indicates that another process replaced the staged or published
	// file, so the write did not succeed.
	ErrReplaced = errors.New("staged file was replaced during the write")
)

Functions

func ReadStreamHeader

func ReadStreamHeader(source io.Reader) (uint64, error)

ReadStreamHeader validates an acfs stream header and returns its payload length.

func WriteStreamHeader

func WriteStreamHeader(destination io.Writer, payloadLength uint64) error

WriteStreamHeader writes an acfs stream header.

Types

type FS added in v0.8.0

type FS interface {
	List(ctx context.Context, path string) ([]acfstypes.Entry, error)
	ListEach(ctx context.Context, path string, options acfstypes.ListOptions, visit func(acfstypes.Entry) error) (acfstypes.ListResult, error)
	Stat(ctx context.Context, path string, options acfstypes.StatOptions) (acfstypes.Entry, error)
	Exists(ctx context.Context, path string) (bool, error)

	OpenRead(ctx context.Context, path string, maxBytes int64) (io.ReadCloser, int64, error)
	OpenReadSeek(ctx context.Context, path string) (io.ReadSeekCloser, int64, error)
	ReadFile(ctx context.Context, path string) ([]byte, error)
	ReadTo(ctx context.Context, path string, destination io.Writer, maxBytes int64) (int64, error)
	OpenFile(ctx context.Context, path string, options OpenOptions) (*os.File, error)
	CreateTemp(ctx context.Context, dir, pattern string) (*os.File, string, error)

	Write(ctx context.Context, path string, data []byte, options WriteOptions) error
	WriteFrom(ctx context.Context, path string, source io.Reader, options WriteFromOptions) (int64, error)
	WriteAt(ctx context.Context, path string, offset int64, data []byte) error
	Sync(ctx context.Context, path string) error

	Mkdir(ctx context.Context, path string, mode os.FileMode) error
	MkdirAll(ctx context.Context, path string, mode os.FileMode) error
	MkdirTemp(ctx context.Context, dir, pattern string) (string, error)
	Rename(ctx context.Context, source, target string) error
	Remove(ctx context.Context, path string) error
	RemoveAll(ctx context.Context, path string) error

	Chmod(ctx context.Context, path string, mode os.FileMode) error
	Chown(ctx context.Context, path string, uid, gid int) error
	Lchown(ctx context.Context, path string, uid, gid int) error
	Chtimes(ctx context.Context, path string, atime, mtime time.Time) error
	Symlink(ctx context.Context, target, linkPath string) error
	Readlink(ctx context.Context, path string) (string, error)
}

FS is the operation set shared by Root and Host. Copy, mirror, and Apply are Root-only; Host has CopyDir and MirrorDir.

type Host added in v0.8.0

type Host struct {
	// Special lets OpenRead, ReadFile, ReadTo, and OpenFile open FIFOs and
	// character devices such as /dev/stdin, blocking like the os package.
	// Directories are still refused, and OpenReadSeek requires a regular file.
	Special bool
}

Host offers the Root operations on absolute host paths without confinement, following symbolic links like the os package. Use acfs.Host{}.

func (Host) Chmod added in v0.8.0

func (h Host) Chmod(ctx context.Context, hostPath string, mode os.FileMode) error

Chmod changes the mode of a host path, following symbolic links.

func (Host) Chown added in v0.8.0

func (h Host) Chown(ctx context.Context, hostPath string, uid, gid int) error

Chown changes the owner of a host path, following symbolic links.

func (Host) Chtimes added in v0.8.0

func (h Host) Chtimes(ctx context.Context, hostPath string, atime, mtime time.Time) error

Chtimes changes the times of a host path, following symbolic links.

func (Host) CopyDir added in v0.8.0

func (Host) CopyDir(ctx context.Context, sourceDir, destinationDir string, options acfstypes.CopyOptions) (acfstypes.CopyResult, error)

CopyDir copies the host directory sourceDir into destinationDir like Root.CopyTo.

func (Host) CreateTemp added in v0.8.0

func (Host) CreateTemp(ctx context.Context, hostDir, pattern string) (*os.File, string, error)

CreateTemp creates a uniquely named file in a host directory like Root.CreateTemp.

func (Host) Exists added in v0.8.0

func (h Host) Exists(ctx context.Context, hostPath string) (bool, error)

Exists reports whether a host path exists. A missing target is not an error.

func (Host) Lchown added in v0.8.0

func (h Host) Lchown(ctx context.Context, hostPath string, uid, gid int) error

Lchown changes the owner of a host path without following its final link.

func (Host) List added in v0.8.0

func (h Host) List(ctx context.Context, hostPath string) ([]acfstypes.Entry, error)

List returns the direct children of a host directory.

func (Host) ListEach added in v0.8.0

func (Host) ListEach(ctx context.Context, hostPath string, options acfstypes.ListOptions, visit func(acfstypes.Entry) error) (acfstypes.ListResult, error)

ListEach visits the children of a host directory in name order, bounded by options like Root.ListEach.

func (Host) MirrorDir added in v0.8.0

func (Host) MirrorDir(ctx context.Context, sourceDir, destinationDir string, options acfstypes.MirrorOptions) error

MirrorDir makes the host directory destinationDir match sourceDir like Root.MirrorTo.

func (Host) Mkdir added in v0.8.0

func (Host) Mkdir(ctx context.Context, hostPath string, mode os.FileMode) error

Mkdir creates a host directory. An existing target reports ErrAlreadyExists.

func (Host) MkdirAll added in v0.8.0

func (Host) MkdirAll(ctx context.Context, hostPath string, mode os.FileMode) error

MkdirAll creates a host directory and any missing parents.

func (Host) MkdirTemp added in v0.8.0

func (Host) MkdirTemp(ctx context.Context, hostDir, pattern string) (string, error)

MkdirTemp creates a uniquely named directory in a host directory like Root.MkdirTemp.

func (Host) OpenFile added in v0.8.0

func (h Host) OpenFile(ctx context.Context, hostPath string, options OpenOptions) (*os.File, error)

OpenFile opens a host regular file, or a special file with h.Special, following symbolic links.

func (Host) OpenRead added in v0.8.0

func (h Host) OpenRead(ctx context.Context, hostPath string, maxBytes int64) (io.ReadCloser, int64, error)

OpenRead opens a host file for a streaming read of at most maxBytes when positive. A special file has no known size: it reports -1 and is read to EOF or maxBytes.

func (Host) OpenReadSeek added in v0.8.0

func (Host) OpenReadSeek(ctx context.Context, hostPath string) (io.ReadSeekCloser, int64, error)

OpenReadSeek opens a host regular file for a seekable read.

func (Host) ReadFile added in v0.8.0

func (h Host) ReadFile(ctx context.Context, hostPath string) ([]byte, error)

ReadFile reads a host file to EOF, so /proc files with size zero and special files are read.

func (Host) ReadTo added in v0.8.0

func (h Host) ReadTo(ctx context.Context, hostPath string, destination io.Writer, maxBytes int64) (int64, error)

ReadTo streams a host file into destination, at most maxBytes when positive.

func (Host) Readlink(ctx context.Context, hostPath string) (string, error)

Readlink returns the stored target of a host symbolic link.

func (Host) Remove added in v0.8.0

func (Host) Remove(ctx context.Context, hostPath string) error

Remove removes a host file, symbolic link, or empty directory like Root.Remove.

func (Host) RemoveAll added in v0.8.0

func (Host) RemoveAll(ctx context.Context, hostPath string) error

RemoveAll removes a host path and its children. A missing target is not an error.

func (Host) Rename added in v0.8.0

func (Host) Rename(ctx context.Context, source, target string) error

Rename moves source onto target like Root.Rename.

func (Host) Stat added in v0.8.0

func (Host) Stat(ctx context.Context, hostPath string, options acfstypes.StatOptions) (acfstypes.Entry, error)

Stat returns metadata for a host path, following symbolic links only with options.FollowFinal.

func (Host) Symlink(ctx context.Context, target, linkPath string) error

Symlink creates a host symbolic link storing target verbatim. An existing linkPath reports ErrAlreadyExists.

func (Host) Sync added in v0.10.0

func (Host) Sync(ctx context.Context, hostPath string) error

Sync flushes a host regular file or directory to stable storage, following symbolic links.

func (Host) Write added in v0.8.0

func (Host) Write(ctx context.Context, hostPath string, data []byte, options WriteOptions) error

Write writes data to a host file like Root.Write.

func (Host) WriteAt added in v0.8.0

func (Host) WriteAt(ctx context.Context, hostPath string, offset int64, data []byte) error

WriteAt writes data at offset into an existing host file like Root.WriteAt.

func (Host) WriteFrom added in v0.8.0

func (Host) WriteFrom(ctx context.Context, hostPath string, source io.Reader, options WriteFromOptions) (int64, error)

WriteFrom atomically writes exactly options.Size bytes from source to a host file.

type OpenOptions added in v0.8.0

type OpenOptions struct {
	// Mode is the permission set of a file created by Create.
	Mode   os.FileMode
	Read   bool
	Write  bool
	Create bool
	// Exclusive, which requires Create, reports ErrAlreadyExists for an existing file.
	Exclusive bool
	// Truncate, which requires Write, empties an existing file.
	Truncate bool
	// Append, which requires Write, makes every write append to the file.
	Append bool
}

OpenOptions selects how OpenFile opens a regular file. Read or Write is required.

type Root

type Root struct {
	// Path is the host directory that logical paths are resolved against.
	Path string
}

Root confines every operation to Path. Its methods take absolute logical paths such as "/a/b"; the zero Root fails every operation.

func (Root) Apply

func (r Root) Apply(ctx context.Context, staging Root, manifest acfstypes.ApplyManifest) (int, error)

Apply performs an ordered batch of root-confined mutations, stopping at the first failure.

func (Root) Chmod added in v0.8.0

func (r Root) Chmod(ctx context.Context, logicalPath string, mode os.FileMode) error

Chmod changes the mode of a root-confined path, refusing symbolic links with ErrSymlink.

func (Root) Chown added in v0.8.0

func (r Root) Chown(ctx context.Context, logicalPath string, uid, gid int) error

Chown changes the owner of a root-confined path like Chmod. A uid or gid of -1 is unchanged.

func (Root) Chtimes added in v0.8.0

func (r Root) Chtimes(ctx context.Context, logicalPath string, atime, mtime time.Time) error

Chtimes changes the times of a root-confined path like Chmod. A zero time is unchanged.

func (Root) CopyTo

func (r Root) CopyTo(ctx context.Context, destination Root, options acfstypes.CopyOptions) (acfstypes.CopyResult, error)

CopyTo copies r into destination, which may not nest with r. Links are skipped and sockets, FIFOs, and devices are recorded in CopyResult.Skipped.

func (Root) CreateTemp added in v0.8.0

func (r Root) CreateTemp(ctx context.Context, logicalDir, pattern string) (*os.File, string, error)

CreateTemp creates a uniquely named 0o600 file in a root-confined directory and returns it open with its logical path.

func (Root) Exists

func (r Root) Exists(ctx context.Context, logicalPath string) (bool, error)

Exists reports whether a root-confined path exists; a dangling final link counts. A missing target is not an error.

func (Root) Lchown added in v0.8.0

func (r Root) Lchown(ctx context.Context, logicalPath string, uid, gid int) error

Lchown changes the owner of a root-confined path without following its final link.

func (Root) List

func (r Root) List(ctx context.Context, logicalPath string) ([]acfstypes.Entry, error)

List returns the direct children of a root-confined directory.

func (Root) ListEach

func (r Root) ListEach(ctx context.Context, logicalPath string, options acfstypes.ListOptions, visit func(acfstypes.Entry) error) (acfstypes.ListResult, error)

ListEach visits the children of a root-confined directory in name order. With options.MaxEntries, it visits only the first MaxEntries names and holds no more than twice that many in memory.

func (Root) LogicalPath

func (r Root) LogicalPath(absPath string) (string, error)

LogicalPath lexically translates an absolute host path under r.Path into a logical path, reporting ErrOutsideRoot for one outside it.

func (Root) MirrorTo

func (r Root) MirrorTo(ctx context.Context, destination Root, options acfstypes.MirrorOptions) error

MirrorTo makes destination match r in place, keeping inodes of bind-mounted files and tolerating unreadable or unwritable entries (#3509, #3625).

func (Root) Mkdir

func (r Root) Mkdir(ctx context.Context, logicalPath string, mode os.FileMode) error

Mkdir creates a root-confined directory whose parent exists. An existing target reports ErrAlreadyExists, which also matches fs.ErrExist.

func (Root) MkdirAll

func (r Root) MkdirAll(ctx context.Context, logicalPath string, mode os.FileMode) error

MkdirAll creates a root-confined directory and any missing parents.

func (Root) MkdirTemp

func (r Root) MkdirTemp(ctx context.Context, logicalDir, pattern string) (string, error)

MkdirTemp creates a uniquely named 0o700 directory in a root-confined directory and returns its logical path. The pattern follows os.MkdirTemp.

func (Root) OpenFile added in v0.8.0

func (r Root) OpenFile(ctx context.Context, logicalPath string, options OpenOptions) (*os.File, error)

OpenFile opens a root-confined regular file. Writes and creates refuse symbolic links with ErrSymlink; read-only opens follow links inside the root.

func (Root) OpenRead

func (r Root) OpenRead(ctx context.Context, logicalPath string, maxBytes int64) (io.ReadCloser, int64, error)

OpenRead opens a root-confined file for a streaming read of at most maxBytes when positive.

func (Root) OpenReadSeek

func (r Root) OpenReadSeek(ctx context.Context, logicalPath string) (io.ReadSeekCloser, int64, error)

OpenReadSeek opens a root-confined regular file for a seekable read.

func (Root) ReadFile

func (r Root) ReadFile(ctx context.Context, logicalPath string) ([]byte, error)

ReadFile returns the contents of a root-confined regular file.

func (Root) ReadTo

func (r Root) ReadTo(ctx context.Context, logicalPath string, destination io.Writer, maxBytes int64) (int64, error)

ReadTo streams a root-confined file into destination, at most maxBytes when positive.

func (r Root) Readlink(ctx context.Context, logicalPath string) (string, error)

Readlink returns the stored target of a root-confined symbolic link verbatim.

func (Root) Remove

func (r Root) Remove(ctx context.Context, logicalPath string) error

Remove removes a root-confined file, symbolic link, or empty directory. A non-empty directory reports ErrNotEmpty and a missing target is an error.

func (Root) RemoveAll

func (r Root) RemoveAll(ctx context.Context, logicalPath string) error

RemoveAll removes a root-confined path and its children. A missing target is not an error.

func (Root) Rename

func (r Root) Rename(ctx context.Context, sourceLogical, targetLogical string) error

Rename moves sourceLogical onto targetLogical inside the root like os.Rename, without following either final component. A cross-device rename reports EXDEV.

func (Root) Stat

func (r Root) Stat(ctx context.Context, logicalPath string, options acfstypes.StatOptions) (acfstypes.Entry, error)

Stat returns metadata for a root-confined path, following the final symbolic link only with options.FollowFinal.

func (r Root) Symlink(ctx context.Context, target, linkPath string) (retErr error)

Symlink creates a root-confined symbolic link whose target must stay inside the root, storing an absolute target as the equivalent relative path.

func (Root) Sync added in v0.10.0

func (r Root) Sync(ctx context.Context, logicalPath string) error

Sync flushes a root-confined regular file or directory to stable storage. Links in the parent path are resolved; a final link is refused with ErrSymlink.

func (Root) Walk

func (r Root) Walk(ctx context.Context, logicalPath string, options acfstypes.WalkOptions, visit func(acfstypes.Entry) error) (acfstypes.WalkResult, error)

Walk visits every descendant of a root-confined directory depth-first in name order without following symbolic links.

func (Root) Write

func (r Root) Write(ctx context.Context, logicalPath string, data []byte, options WriteOptions) error

Write atomically replaces a root-confined file with data, or rewrites it in place with options.InPlace.

func (Root) WriteAt

func (r Root) WriteAt(ctx context.Context, logicalPath string, offset int64, data []byte) error

WriteAt writes data at offset into an existing root-confined regular file, in place.

func (Root) WriteFrom

func (r Root) WriteFrom(ctx context.Context, logicalPath string, source io.Reader, options WriteFromOptions) (int64, error)

WriteFrom atomically writes exactly options.Size bytes from source to a root-confined file.

type WriteFromOptions

type WriteFromOptions struct {
	// Size is the exact number of bytes to read from the source.
	Size int64
	// Mode is the permission set of the written file.
	Mode os.FileMode
	// Exclusive publishes the file only if the target does not exist, reporting
	// ErrAlreadyExists otherwise.
	Exclusive bool
}

WriteFromOptions configures WriteFrom.

type WriteOptions

type WriteOptions struct {
	Mode os.FileMode
	// InPlace keeps existing inodes and refuses a final symbolic link, but is not atomic.
	InPlace bool
	// Exclusive publishes the file only if the target does not exist, reporting
	// ErrAlreadyExists otherwise. It cannot be combined with InPlace.
	Exclusive bool
}

WriteOptions configures a write.

Directories

Path Synopsis
internal
cli
Package cli implements the acfs command-line protocol.
Package cli implements the acfs command-line protocol.
version
Package version contains build metadata injected by GoReleaser.
Package version contains build metadata injected by GoReleaser.
Package types contains the public data contracts used by ACFS and its command-line protocol.
Package types contains the public data contracts used by ACFS and its command-line protocol.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL