Module: RubySMB::SMB1::Packet::Trans2::SetInformationLevel
- Defined in:
- lib/ruby_smb/smb1/packet/trans2/set_information_level.rb
Overview
Information Level codes valid for Trans2 SET_PATH_INFORMATION and SET_FILE_INFORMATION requests. See MS-CIFS 2.2.2.3.4 SET Information Level Codes.
FSCC pass-through levels are defined in
Fscc::FileInformation and require
SMB_INFO_PASSTHROUGH to be added. The constants defined here are
the CIFS UNIX Extensions info levels used by Samba servers that
advertise UNIX extensions support in their negotiate response. These
levels fall outside MS-CIFS; their wire format is defined by the
CIFS UNIX Extensions draft and implemented by Samba's
smb_set_file_unix_link handler at
source3/smbd/smb1_trans2.c:3643-3712.
Constant Summary collapse
- SMB_SET_FILE_UNIX_LINK =
Set the symbolic link target for a file. The Trans2 parameters block carries the path being created (the symlink itself); the Trans2 data block carries the target path as a null-terminated string.
0x0201- SMB_SET_FILE_UNIX_HLINK =
Create a hard link. Data block carries the existing file path.
0x0203
Class Method Summary collapse
Class Method Details
.name(value) ⇒ Object
28 29 30 |
# File 'lib/ruby_smb/smb1/packet/trans2/set_information_level.rb', line 28 def self.name(value) constants.select { |c| c.upcase == c }.find { |c| const_get(c) == value } end |