minidlna support now Samsung TV C550/C650 (thx amir909)
[tomato.git] / release / src / router / samba3 / docs / manpages / vfstest.1
blob75979242d07e2c2b6d3027b5f4588871cb756ce1
1 .\"     Title: vfstest
2 .\"    Author: [see the "AUTHOR" section]
3 .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
4 .\"      Date: 09/30/2009
5 .\"    Manual: User Commands
6 .\"    Source: Samba 3.0
7 .\"  Language: English
8 .\"
9 .TH "VFSTEST" "1" "09/30/2009" "Samba 3\&.0" "User Commands"
10 .\" -----------------------------------------------------------------
11 .\" * (re)Define some macros
12 .\" -----------------------------------------------------------------
13 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14 .\" toupper - uppercase a string (locale-aware)
15 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 .de toupper
17 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
18 \\$*
19 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
21 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22 .\" SH-xref - format a cross-reference to an SH section
23 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24 .de SH-xref
25 .ie n \{\
26 .\}
27 .toupper \\$*
28 .el \{\
29 \\$*
30 .\}
32 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33 .\" SH - level-one heading that works better for non-TTY output
34 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35 .de1 SH
36 .\" put an extra blank line of space above the head in non-TTY output
37 .if t \{\
38 .sp 1
39 .\}
40 .sp \\n[PD]u
41 .nr an-level 1
42 .set-an-margin
43 .nr an-prevailing-indent \\n[IN]
44 .fi
45 .in \\n[an-margin]u
46 .ti 0
47 .HTML-TAG ".NH \\n[an-level]"
48 .it 1 an-trap
49 .nr an-no-space-flag 1
50 .nr an-break-flag 1
51 \." make the size of the head bigger
52 .ps +3
53 .ft B
54 .ne (2v + 1u)
55 .ie n \{\
56 .\" if n (TTY output), use uppercase
57 .toupper \\$*
58 .\}
59 .el \{\
60 .nr an-break-flag 0
61 .\" if not n (not TTY), use normal case (not uppercase)
62 \\$1
63 .in \\n[an-margin]u
64 .ti 0
65 .\" if not n (not TTY), put a border/line under subheading
66 .sp -.6
67 \l'\n(.lu'
68 .\}
70 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71 .\" SS - level-two heading that works better for non-TTY output
72 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73 .de1 SS
74 .sp \\n[PD]u
75 .nr an-level 1
76 .set-an-margin
77 .nr an-prevailing-indent \\n[IN]
78 .fi
79 .in \\n[IN]u
80 .ti \\n[SN]u
81 .it 1 an-trap
82 .nr an-no-space-flag 1
83 .nr an-break-flag 1
84 .ps \\n[PS-SS]u
85 \." make the size of the head bigger
86 .ps +2
87 .ft B
88 .ne (2v + 1u)
89 .if \\n[.$] \&\\$*
91 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92 .\" BB/BE - put background/screen (filled box) around block of text
93 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
94 .de BB
95 .if t \{\
96 .sp -.5
97 .br
98 .in +2n
99 .ll -2n
100 .gcolor red
101 .di BX
104 .de EB
105 .if t \{\
106 .if "\\$2"adjust-for-leading-newline" \{\
107 .sp -1
113 .gcolor
114 .nr BW \\n(.lu-\\n(.i
115 .nr BH \\n(dn+.5v
116 .ne \\n(BHu+.5v
117 .ie "\\$2"adjust-for-leading-newline" \{\
118 \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
120 .el \{\
121 \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
123 .in 0
124 .sp -.5v
128 .sp .5v
132 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133 .\" BM/EM - put colored marker in margin next to block of text
134 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
135 .de BM
136 .if t \{\
138 .ll -2n
139 .gcolor red
140 .di BX
143 .de EM
144 .if t \{\
148 .gcolor
149 .nr BH \\n(dn
150 .ne \\n(BHu
151 \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
152 .in 0
159 .\" -----------------------------------------------------------------
160 .\" * set default formatting
161 .\" -----------------------------------------------------------------
162 .\" disable hyphenation
164 .\" disable justification (adjust text to left margin only)
165 .ad l
166 .\" -----------------------------------------------------------------
167 .\" * MAIN CONTENT STARTS HERE *
168 .\" -----------------------------------------------------------------
169 .SH "Name"
170 vfstest \- tool for testing samba VFS modules
171 .SH "Synopsis"
172 .fam C
173 .HP \w'\ 'u
174 \FCvfstest\F[] [\-d\ debuglevel] [\-c\ command] [\-l\ logdir] [\-h]
175 .fam
176 .SH "DESCRIPTION"
178 This tool is part of the
179 \fBsamba\fR(7)
180 suite\&.
182 \FCvfstest\F[]
183 is a small command line utility that has the ability to test dso samba VFS modules\&. It gives the user the ability to call the various VFS functions manually and supports cascaded VFS modules\&.
184 .SH "OPTIONS"
186 \-c|\-\-command=command
187 .RS 4
188 Execute the specified (colon\-separated) commands\&. See below for the commands that are available\&.
191 \-h|\-\-help
192 .RS 4
193 Print a summary of command line options\&.
196 \-l|\-\-logfile=logbasename
197 .RS 4
198 File name for log/debug files\&. The extension
199 \fB\'\&.client\'\fR
200 will be appended\&. The log file is never removed by the client\&.
203 \-d|\-\-debuglevel=level
204 .RS 4
205 \fIlevel\fR
206 is an integer from 0 to 10\&. The default value if this parameter is not specified is 0\&.
208 The higher this value, the more detail will be logged to the log files about the activities of the server\&. At level 0, only critical errors and serious warnings will be logged\&. Level 1 is a reasonable level for day\-to\-day running \- it generates a small amount of information about operations carried out\&.
210 Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem\&. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic\&.
212 Note that specifying this parameter here will override the
213 \m[blue]\fBlog level\fR\m[]
214 parameter in the
215 \FCsmb\&.conf\F[]
216 file\&.
220 .RS 4
221 Prints the program version number\&.
224 \-s <configuration file>
225 .RS 4
226 The file specified contains the configuration details required by the server\&. The information in this file includes server\-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide\&. See
227 \FCsmb\&.conf\F[]
228 for more information\&. The default configuration file name is determined at compile time\&.
231 \-l|\-\-log\-basename=logdirectory
232 .RS 4
233 Base directory name for log/debug files\&. The extension
234 \fB"\&.progname"\fR
235 will be appended (e\&.g\&. log\&.smbclient, log\&.smbd, etc\&.\&.\&.)\&. The log file is never removed by the client\&.
237 .SH "COMMANDS"
239 \fIVFS COMMANDS\fR
241 .RS 4
242 .ie n \{\
243 \h'-04'\(bu\h'+03'\c
245 .el \{\
246 .sp -1
247 .IP \(bu 2.3
249 \FCload <module\&.so>\F[]
250 \- Load specified VFS module
253 .RS 4
254 .ie n \{\
255 \h'-04'\(bu\h'+03'\c
257 .el \{\
258 .sp -1
259 .IP \(bu 2.3
261 \FCpopulate <char> <size>\F[]
262 \- Populate a data buffer with the specified data
265 .RS 4
266 .ie n \{\
267 \h'-04'\(bu\h'+03'\c
269 .el \{\
270 .sp -1
271 .IP \(bu 2.3
273 \FCshowdata [<offset> <len>]\F[]
274 \- Show data currently in data buffer
277 .RS 4
278 .ie n \{\
279 \h'-04'\(bu\h'+03'\c
281 .el \{\
282 .sp -1
283 .IP \(bu 2.3
285 \FCconnect\F[]
286 \- VFS connect()
289 .RS 4
290 .ie n \{\
291 \h'-04'\(bu\h'+03'\c
293 .el \{\
294 .sp -1
295 .IP \(bu 2.3
297 \FCdisconnect\F[]
298 \- VFS disconnect()
301 .RS 4
302 .ie n \{\
303 \h'-04'\(bu\h'+03'\c
305 .el \{\
306 .sp -1
307 .IP \(bu 2.3
309 \FCdisk_free\F[]
310 \- VFS disk_free()
313 .RS 4
314 .ie n \{\
315 \h'-04'\(bu\h'+03'\c
317 .el \{\
318 .sp -1
319 .IP \(bu 2.3
321 \FCopendir\F[]
322 \- VFS opendir()
325 .RS 4
326 .ie n \{\
327 \h'-04'\(bu\h'+03'\c
329 .el \{\
330 .sp -1
331 .IP \(bu 2.3
333 \FCreaddir\F[]
334 \- VFS readdir()
337 .RS 4
338 .ie n \{\
339 \h'-04'\(bu\h'+03'\c
341 .el \{\
342 .sp -1
343 .IP \(bu 2.3
345 \FCmkdir\F[]
346 \- VFS mkdir()
349 .RS 4
350 .ie n \{\
351 \h'-04'\(bu\h'+03'\c
353 .el \{\
354 .sp -1
355 .IP \(bu 2.3
357 \FCrmdir\F[]
358 \- VFS rmdir()
361 .RS 4
362 .ie n \{\
363 \h'-04'\(bu\h'+03'\c
365 .el \{\
366 .sp -1
367 .IP \(bu 2.3
369 \FCclosedir\F[]
370 \- VFS closedir()
373 .RS 4
374 .ie n \{\
375 \h'-04'\(bu\h'+03'\c
377 .el \{\
378 .sp -1
379 .IP \(bu 2.3
381 \FCopen\F[]
382 \- VFS open()
385 .RS 4
386 .ie n \{\
387 \h'-04'\(bu\h'+03'\c
389 .el \{\
390 .sp -1
391 .IP \(bu 2.3
393 \FCclose\F[]
394 \- VFS close()
397 .RS 4
398 .ie n \{\
399 \h'-04'\(bu\h'+03'\c
401 .el \{\
402 .sp -1
403 .IP \(bu 2.3
405 \FCread\F[]
406 \- VFS read()
409 .RS 4
410 .ie n \{\
411 \h'-04'\(bu\h'+03'\c
413 .el \{\
414 .sp -1
415 .IP \(bu 2.3
417 \FCwrite\F[]
418 \- VFS write()
421 .RS 4
422 .ie n \{\
423 \h'-04'\(bu\h'+03'\c
425 .el \{\
426 .sp -1
427 .IP \(bu 2.3
429 \FClseek\F[]
430 \- VFS lseek()
433 .RS 4
434 .ie n \{\
435 \h'-04'\(bu\h'+03'\c
437 .el \{\
438 .sp -1
439 .IP \(bu 2.3
441 \FCrename\F[]
442 \- VFS rename()
445 .RS 4
446 .ie n \{\
447 \h'-04'\(bu\h'+03'\c
449 .el \{\
450 .sp -1
451 .IP \(bu 2.3
453 \FCfsync\F[]
454 \- VFS fsync()
457 .RS 4
458 .ie n \{\
459 \h'-04'\(bu\h'+03'\c
461 .el \{\
462 .sp -1
463 .IP \(bu 2.3
465 \FCstat\F[]
466 \- VFS stat()
469 .RS 4
470 .ie n \{\
471 \h'-04'\(bu\h'+03'\c
473 .el \{\
474 .sp -1
475 .IP \(bu 2.3
477 \FCfstat\F[]
478 \- VFS fstat()
481 .RS 4
482 .ie n \{\
483 \h'-04'\(bu\h'+03'\c
485 .el \{\
486 .sp -1
487 .IP \(bu 2.3
489 \FClstat\F[]
490 \- VFS lstat()
493 .RS 4
494 .ie n \{\
495 \h'-04'\(bu\h'+03'\c
497 .el \{\
498 .sp -1
499 .IP \(bu 2.3
501 \FCunlink\F[]
502 \- VFS unlink()
505 .RS 4
506 .ie n \{\
507 \h'-04'\(bu\h'+03'\c
509 .el \{\
510 .sp -1
511 .IP \(bu 2.3
513 \FCchmod\F[]
514 \- VFS chmod()
517 .RS 4
518 .ie n \{\
519 \h'-04'\(bu\h'+03'\c
521 .el \{\
522 .sp -1
523 .IP \(bu 2.3
525 \FCfchmod\F[]
526 \- VFS fchmod()
529 .RS 4
530 .ie n \{\
531 \h'-04'\(bu\h'+03'\c
533 .el \{\
534 .sp -1
535 .IP \(bu 2.3
537 \FCchown\F[]
538 \- VFS chown()
541 .RS 4
542 .ie n \{\
543 \h'-04'\(bu\h'+03'\c
545 .el \{\
546 .sp -1
547 .IP \(bu 2.3
549 \FCfchown\F[]
550 \- VFS fchown()
553 .RS 4
554 .ie n \{\
555 \h'-04'\(bu\h'+03'\c
557 .el \{\
558 .sp -1
559 .IP \(bu 2.3
561 \FCchdir\F[]
562 \- VFS chdir()
565 .RS 4
566 .ie n \{\
567 \h'-04'\(bu\h'+03'\c
569 .el \{\
570 .sp -1
571 .IP \(bu 2.3
573 \FCgetwd\F[]
574 \- VFS getwd()
577 .RS 4
578 .ie n \{\
579 \h'-04'\(bu\h'+03'\c
581 .el \{\
582 .sp -1
583 .IP \(bu 2.3
585 \FCutime\F[]
586 \- VFS utime()
589 .RS 4
590 .ie n \{\
591 \h'-04'\(bu\h'+03'\c
593 .el \{\
594 .sp -1
595 .IP \(bu 2.3
597 \FCftruncate\F[]
598 \- VFS ftruncate()
601 .RS 4
602 .ie n \{\
603 \h'-04'\(bu\h'+03'\c
605 .el \{\
606 .sp -1
607 .IP \(bu 2.3
609 \FClock\F[]
610 \- VFS lock()
613 .RS 4
614 .ie n \{\
615 \h'-04'\(bu\h'+03'\c
617 .el \{\
618 .sp -1
619 .IP \(bu 2.3
621 \FCsymlink\F[]
622 \- VFS symlink()
625 .RS 4
626 .ie n \{\
627 \h'-04'\(bu\h'+03'\c
629 .el \{\
630 .sp -1
631 .IP \(bu 2.3
633 \FCreadlink\F[]
634 \- VFS readlink()
637 .RS 4
638 .ie n \{\
639 \h'-04'\(bu\h'+03'\c
641 .el \{\
642 .sp -1
643 .IP \(bu 2.3
645 \FClink\F[]
646 \- VFS link()
649 .RS 4
650 .ie n \{\
651 \h'-04'\(bu\h'+03'\c
653 .el \{\
654 .sp -1
655 .IP \(bu 2.3
657 \FCmknod\F[]
658 \- VFS mknod()
661 .RS 4
662 .ie n \{\
663 \h'-04'\(bu\h'+03'\c
665 .el \{\
666 .sp -1
667 .IP \(bu 2.3
669 \FCrealpath\F[]
670 \- VFS realpath()
674 \fIGENERAL COMMANDS\fR
676 .RS 4
677 .ie n \{\
678 \h'-04'\(bu\h'+03'\c
680 .el \{\
681 .sp -1
682 .IP \(bu 2.3
684 \FCconf <smb\&.conf>\F[]
685 \- Load a different configuration file
688 .RS 4
689 .ie n \{\
690 \h'-04'\(bu\h'+03'\c
692 .el \{\
693 .sp -1
694 .IP \(bu 2.3
696 \FChelp [<command>]\F[]
697 \- Get list of commands or info about specified command
700 .RS 4
701 .ie n \{\
702 \h'-04'\(bu\h'+03'\c
704 .el \{\
705 .sp -1
706 .IP \(bu 2.3
708 \FCdebuglevel <level>\F[]
709 \- Set debug level
712 .RS 4
713 .ie n \{\
714 \h'-04'\(bu\h'+03'\c
716 .el \{\
717 .sp -1
718 .IP \(bu 2.3
720 \FCfreemem\F[]
721 \- Free memory currently in use
724 .RS 4
725 .ie n \{\
726 \h'-04'\(bu\h'+03'\c
728 .el \{\
729 .sp -1
730 .IP \(bu 2.3
732 \FCexit\F[]
733 \- Exit vfstest
734 .SH "VERSION"
736 This man page is correct for version 3\&.0 of the Samba suite\&.
737 .SH "AUTHOR"
739 The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
741 The vfstest man page was written by Jelmer Vernooij\&.