summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r--fs/nfsd/state.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index 8eacdbc50cd7..81852cbf6b0a 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -39,6 +39,7 @@
#include <linux/refcount.h>
#include <linux/sunrpc/svc_xprt.h>
#include "nfsfh.h"
+#include "nfsd.h"
typedef struct {
u32 cl_boot;
@@ -348,9 +349,12 @@ struct nfs4_client {
u32 cl_exchange_flags;
/* number of rpc's in progress over an associated session: */
atomic_t cl_rpc_users;
- struct kref cl_ref;
+ struct nfsdfs_client cl_nfsdfs;
struct nfs4_op_map cl_spo_must_allow;
+ /* debugging info directory under nfsd/clients/ : */
+ struct dentry *cl_nfsd_dentry;
+
/* for nfs41 callbacks */
/* We currently support a single back channel with a single slot */
unsigned long cl_cb_slot_busy;
fsfreeze: tell user when mandatory option is not specified' href='/openslx/kernel-qcow2-util-linux.git/commit/sys-utils/fsfreeze.c?id=5543aaad235ec5ec8a8e354f4271aa9268ed4e28'>5543aaad2 ^
6e1eda6f2 ^
f0bef3ca0 ^
6e1eda6f2 ^

a2aef6d92 ^
7de20424b ^
451dbcfae ^

8d42631e3 ^
451dbcfae ^
7de20424b ^


6e1eda6f2 ^
f45f3ec34 ^

f0bef3ca0 ^
6e1eda6f2 ^
f0bef3ca0 ^




5543aaad2 ^
f0bef3ca0 ^


6c7d5ae9a ^
879180406 ^




f0bef3ca0 ^

a7349ee31 ^
d4543f843 ^




f0bef3ca0 ^


efb8854f4 ^
f0bef3ca0 ^
7de20424b ^
d4543f843 ^


f0bef3ca0 ^
f0bef3ca0 ^
5543aaad2 ^
f0bef3ca0 ^

5543aaad2 ^
f0bef3ca0 ^
2c308875a ^


7de20424b ^
2c308875a ^
f0bef3ca0 ^
677ec86ce ^
f0bef3ca0 ^


5543aaad2 ^

f0bef3ca0 ^





6e1eda6f2 ^
f0bef3ca0 ^



289dcc902 ^
f0bef3ca0 ^

fc14ceba5 ^
f0bef3ca0 ^







5543aaad2 ^

6690ceed6 ^
f0bef3ca0 ^


5543aaad2 ^

6690ceed6 ^
f0bef3ca0 ^


5543aaad2 ^


f0bef3ca0 ^








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151





















                                                                 
 
              

                   
                        
                     
 





                   
                                                     
 

                                 
                    
                                                                                

                                    
                                                           
 


                                                                      
                                    

                                              
 
                           




                               
                                             


                       
                                                 




                                                    

          
                                                                                  




                                                                      


                                           
                             
 
                                                                             


                                                                  
                           
                         
                                        

                              
                                          
                              


                                
                         
                                                    
                        
                                                 


                 

                                                                                  





                                                               
                                         



                                  
                                                             

                                   
                                                   







                                                         

                         
                                             


                                                           

                      
                                           


                                                             


                        








                          
/*
 * fsfreeze.c -- Filesystem freeze/unfreeze IO for Linux
 *
 * Copyright (C) 2010 Hajime Taira <htaira@redhat.com>
 *                    Masatake Yamato <yamato@redhat.com>
 *
 * This program is free software.  You can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation: either version 1 or
 * (at your option) any later version.
 */

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <linux/fs.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <getopt.h>

#include "c.h"
#include "blkdev.h"
#include "nls.h"
#include "closestream.h"
#include "optutils.h"

enum fs_operation {
	NOOP,
	FREEZE,
	UNFREEZE
};

static void __attribute__((__noreturn__)) usage(void)
{
	FILE *out = stdout;
	fputs(USAGE_HEADER, out);
	fprintf(out,
	      _(" %s [options] <mountpoint>\n"), program_invocation_short_name);

	fputs(USAGE_SEPARATOR, out);
	fputs(_("Suspend access to a filesystem.\n"), out);

	fputs(USAGE_OPTIONS, out);
	fputs(_(" -f, --freeze      freeze the filesystem\n"), out);
	fputs(_(" -u, --unfreeze    unfreeze the filesystem\n"), out);
	fputs(USAGE_SEPARATOR, out);
	printf(USAGE_HELP_OPTIONS(19));
	printf(USAGE_MAN_TAIL("fsfreeze(8)"));

	exit(EXIT_SUCCESS);
}

int main(int argc, char **argv)
{
	int fd = -1, c;
	int action = NOOP, rc = EXIT_FAILURE;
	char *path;
	struct stat sb;

	static const struct option longopts[] = {
	    { "help",      no_argument, NULL, 'h' },
	    { "freeze",    no_argument, NULL, 'f' },
	    { "unfreeze",  no_argument, NULL, 'u' },
	    { "version",   no_argument, NULL, 'V' },
	    { NULL, 0, NULL, 0 }
	};

	static const ul_excl_t excl[] = {       /* rows and cols in ASCII order */
		{ 'f','u' },			/* freeze, unfreeze */
		{ 0 }
	};
	int excl_st[ARRAY_SIZE(excl)] = UL_EXCL_STATUS_INIT;

	setlocale(LC_ALL, "");
	bindtextdomain(PACKAGE, LOCALEDIR);
	textdomain(PACKAGE);
	atexit(close_stdout);

	while ((c = getopt_long(argc, argv, "hfuV", longopts, NULL)) != -1) {

		err_exclusive_options(c, longopts, excl, excl_st);