1
/*********************************************************
2
* Copyright (C) 2007 VMware, Inc. All rights reserved.
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License as published by the
6
* Free Software Foundation version 2 and no later version.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13
* You should have received a copy of the GNU General Public License along
14
* with this program; if not, write to the Free Software Foundation, Inc.,
15
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
*********************************************************/
22
* ioctl commands used by the sync driver on Unix systems.
24
* SYNC_IOC_FREEZE: Freezes the provided paths.
25
* SYNC_IOC_THAW: Thaws frozen block devices after a FREEZE ioctl.
26
* SYNC_IOC_QUERY: Returns the total number of frozen devices (not
27
* specific to the fd used).
30
#ifndef _SYNCDRIVERIOC_H_
31
#define _SYNCDRIVERIOC_H_
35
# include <linux/ioctl.h>
37
# define SYNC_IOC_FREEZE _IOW(0xF5,0x01,const char *)
38
# define SYNC_IOC_THAW _IO(0xF5,0x02)
39
# define SYNC_IOC_QUERY _IOR(0xF5,0x03,int)
43
# error "Driver not yet implemented for this OS."
47
#endif /* _SYNCDRIVERIOC_H_ */