.\" Copyright (C) 2007-2012 Nippon Telegraph and Telephone Corporation. .\" Written by Ryusuke Konishi .\" .TH CHCP 8 "Jan 2026" "nilfs-utils version 2.3" .SH NAME chcp \- change mode of NILFS2 checkpoints .SH SYNOPSIS .B chcp [\fIoptions\fP] \fBcp\fP | \fBss\fP [\fIdevice\fP|\fInode\fP] \fIcheckpoint-number\fP ... .SH DESCRIPTION .B chcp is a utility to change the mode of the given checkpoints for the NILFS2 file system found in \fIdevice\fP. .I device may be a block device or a filesystem node (file or directory) on the filesystem. .B chcp changes checkpoints to snapshots, or vice versa. The target checkpoints are specified with one or more checkpoint numbers. When \fIdevice\fP is omitted, it tries to find a NILFS2 file system from \fI/proc/mounts\fP. .PP This command is valid only for mounted NILFS2 file systems, and will fail if the \fIdevice\fP has no active mounts. .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR Display help message and exit. .TP \fB\-V\fR, \fB\-\-version\fR Display version and exit. .SH AUTHOR Koji Sato .SH AVAILABILITY .B chcp is part of the nilfs-utils package and is available from https://nilfs.sourceforge.io. .SH SEE ALSO .BR nilfs (8), .BR lscp (1), .BR mkcp (8), .BR rmcp (8), .BR nilfs-tune (8).