~n-muench/ubuntu/quantal/open-vm-tools/open-vm-tools.may2.sid-sync

« back to all changes in this revision

Viewing changes to modules/linux/vmsync/syncDriverIoc.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-05-30 09:48:43 UTC
  • mfrom: (1.1.5 upstream) (2.4.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090530094843-gdpza57r5iqsf124
Tags: 2009.05.22-167859-1
MergingĀ upstreamĀ versionĀ 2009.05.22-167859.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*********************************************************
2
 
 * Copyright (C) 2007 VMware, Inc. All rights reserved.
3
 
 *
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.
7
 
 *
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
11
 
 * for more details.
12
 
 *
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
16
 
 *
17
 
 *********************************************************/
18
 
 
19
 
/*
20
 
 * syncDriverIoc.h --
21
 
 *
22
 
 * ioctl commands used by the sync driver on Unix systems.
23
 
 *
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).
28
 
 */
29
 
 
30
 
#ifndef _SYNCDRIVERIOC_H_
31
 
#define _SYNCDRIVERIOC_H_
32
 
 
33
 
#ifdef linux
34
 
 
35
 
# include <linux/ioctl.h>
36
 
 
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)
40
 
 
41
 
#else
42
 
 
43
 
# error "Driver not yet implemented for this OS."
44
 
 
45
 
#endif
46
 
 
47
 
#endif /* _SYNCDRIVERIOC_H_ */
48