.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "FREEZE_BDEV" "9" "09 October 2005" "" ""
.SH NAME
freeze_bdev \- - lock a filesystem and force it into a consistent state
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct super_block * freeze_bdev (struct block_device * \fIbdev\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIbdev\fB\fR
blockdevice to lock
.SH "DESCRIPTION"
.PP
This takes the block device bd_mount_sem to make sure no new mounts
happen on bdev until \fBthaw_bdev\fR is called.
If a superblock is found on this device, we take the s_umount semaphore
on it to make sure nobody unmounts until the snapshot creation is done.