pfsctl (BPX1PCT)

Purpose

The pfsctl (BPX1PCT) application programming interface is used to send requests to a physical file system. It is documented in z/OS UNIX System Services Programming: Assembler Callable Services Reference. zFS is a physical file system and supports several zFS-specific pfsctl functions, which are documented in this section.

Format

BPX1PCT (File_system_type,
         Command,
         Argument_Length,
         Argument,
         Return_value,
         Return_code,
         Reason_code); 

Parameters

File_system_type
An eight-character field. In the case of zFS, it contains the characters ZFS, followed by five blanks.
Command
An integer. There are Start of changefiveEnd of change major ZFS commands:
  • ZFSCALL_AGGR (0x40000005)
  • ZFSCALL_CONFIG (0x40000006)
  • ZFSCALL_FILESYS (0x40000004)
  • Start of changeZFSCALL_FSINFO (0x40000013)End of change
  • ZFSCALL_STATS (0x40000007)

Each command has a set of subcommands.

Argument_Length
An integer that contains the length of the argument.
Argument
A structure that has the pfsctl parameters followed by the subcommand parameters. The definitions of any structures that have padding bytes added by the compiler, have the padding bytes explicitly declared in the examples.
Start of changeThe fields of the structures are described in the Format sections of each API. These descriptions contain structure names, field names inside the structures, the length of the field, and a brief description of what the field is used for. The lengths of the field names contain C types and are as follows:
  • int or unsigned int are four bytes.
  • long long, unsigned long long, long long int, and unsigned long long int are 8 bytes.
End of change
The following list shows the general format of the Argument for all subcommands, where n depends on the particular subcommand:
Subcommand operation code     int
Parameter0                    int
Parameter1                    int
Parameter2                    int
Parameter3                    int
Parameter4                    int
Parameter5                    int
Parameter6                    int
Buffer[n]                     char[n]                        
Return_value
An integer that contains 0 if the request is successful or -1 if it is not successful.
Return_Code
An integer in which the return code is stored. See z/OS UNIX System Services Messages and Codes for these codes.
Reason_Code
An integer that stores the reason code. If this code is of the form 0xEFnnxxxx, see z/OS Distributed File Service Messages and Codes. Otherwise, see z/OS UNIX System Services Messages and Codes.

Usage notes

Start of changeThe major commandsEnd of change are summarized in Table 1 and described in detail in the following sections. The zFS pfsctl APIs will work across sysplex members. That is, zFS pfsctl APIs can query and set information on zFS aggregates that are owned by the current system. They can also access and set file system information from other systems in the sysplex.

The z/OS® UNIX pfsctl (command X'C000000B') can also retrieve zFS reason code text. For more information, see the description of the PC#ErrorText pfsctl command in the usage notes for the BPX1PCT service in z/OS UNIX System Services Programming: Assembler Callable Services Reference.

Table 1. Summary of APIs for zFS pfsctl
Command Code Subcommands and opcodes
Aggregate ZFSCALL_AGGR (0x40000005)
  • Attach Aggregate (105)
  • Define Aggregate (139)
  • Delete File System (136)
  • Detach Aggregate (104)
  • Format Aggregate (134)
  • Grow Aggregate (129)
  • List Aggregate Status (137)
  • List Aggregate Status (Version 2) (146)
  • List Attached Aggregate Names (135)
  • List Attached Aggregate Names (Version 2) (140)
  • List File System Names (138)
  • List File System Names (Version 2) (144)
  • Quiesce Aggregate (132)
  • Set Auditfid (149)
  • Unquiesce Aggregate (133)
  • Reset backup flag (157)
File System ZFSCALL_FILESYS (0x40000004)
  • List File System Status (142)
Configuration ZFSCALL_CONFIG (0x40000006)
  • List Systems (174)
  • Query adm_threads setting (180)
  • Query aggrfull setting (181)
  • Query aggrgrow setting (182)
  • Query change_aggrversion_on_mount (246)
  • Query client_cache_size (231)
  • Query client_reply_storage (223)
  • Query cmd_trace (184)
  • Query convert_auditfid (237)
  • Query converttov5 (250)
  • Query debug_settings_dsn setting (186)
  • Query file_threads (217)
  • Query format_aggrversion (248)
  • Query fsfull setting (187)
  • Query group setting (214)
  • Query log_cache_size setting (193)
  • Query meta_cache_size setting (198)
  • Query metaback_cache_size setting (199)
  • Start of changeQuery modify_cmd_threads (251)End of change
  • Query msg_input_dsn setting (200)
  • Query msg_output_dsn setting (201)
  • Query sync_interval setting (205)
  • Query syslevel (238)
  • Query sysplex_filesys_sharemode (244)
  • Query sysplex_state (215)
  • Query token_cache_size (216)
  • Query trace_dsn setting (206)
  • Query trace_table_size setting (207)
  • Query tran_cache_size setting (208)
  • Query user_cache_size setting (210)
  • Query vnode_cache_size setting (212)
  • Set adm_threads (150)
  • Set aggrfull (158)
  • Set aggrgrow (171)
  • Set change_aggrversion_on_mount (245)
  • Set client_cache_size (230)
  • Set client_reply_storage (222)
  • Set convert_auditfid (236)
  • Set converttov5 (249)
  • Set file_threads (176)
  • Set format_aggrversion (247)
  • Set fsfull (157)
  • Set log_cache_size (153)
  • Set meta_cache_size (152)
  • Set metaback_cache_size (163)
  • Start of changeSet modify_cmd_threads (173) End of change
  • Set msg_output_dsn (161)
  • Set sync_interval (154)
  • Set sysplex_filesys_sharemode (243)
  • Set token_cache_size (177)
  • Set trace_dsn (159)
  • Set tran_cache_size (160)
  • Set user_cache_size (151)
  • Set vnode_cache_size (155)
Statistics ZFSCALL_STATS (0x40000007)
  • Statistics directory cache information (249)
  • Statistics iobyaggr information (244)
  • Statistics iobydasd information (245)
  • Statistics iocounts information (243)
  • Statistics kernel information (246)
  • Statistics locking information (240)
  • Statistics log cache information (247)
  • Statistics metadata cache information (248)
  • Statistics storage information (241)
  • Statistics transaction cache information (250)
  • Statistics user data cache information (242)
  • Statistics vnode cache information (251)
  • Start of changeStatistics server token management information (252)End of change
  • Start of changeStatistics client vnode operations (253)End of change
  • Start of changeStatistics server vnode operations (254)End of change
Start of changeFile System InformationEnd of change Start of changeZFSCALL_FSINFO (0x40000013)End of change Start of change
  • Start of changeList detailed file system information (153)End of change
  • Reset file system statistics (154)
End of change
Table 2. Summary of zFS w_pioctl calls
Command Code
fileinfo 0x0000A901