Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v4.20 61 lines 1.9 kB view raw
1/* 2 * fs/cifs/cifs_ioctl.h 3 * 4 * Structure definitions for io control for cifs/smb3 5 * 6 * Copyright (c) 2015 Steve French <steve.french@primarydata.com> 7 * 8 * This library is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU Lesser General Public License as published 10 * by the Free Software Foundation; either version 2.1 of the License, or 11 * (at your option) any later version. 12 * 13 * This library is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 16 * the GNU Lesser General Public License for more details. 17 * 18 */ 19 20struct smb_mnt_fs_info { 21 __u32 version; /* 0001 */ 22 __u16 protocol_id; 23 __u16 tcon_flags; 24 __u32 vol_serial_number; 25 __u32 vol_create_time; 26 __u32 share_caps; 27 __u32 share_flags; 28 __u32 sector_flags; 29 __u32 optimal_sector_size; 30 __u32 max_bytes_chunk; 31 __u32 fs_attributes; 32 __u32 max_path_component; 33 __u32 device_type; 34 __u32 device_characteristics; 35 __u32 maximal_access; 36 __u64 cifs_posix_caps; 37} __packed; 38 39struct smb_snapshot_array { 40 __u32 number_of_snapshots; 41 __u32 number_of_snapshots_returned; 42 __u32 snapshot_array_size; 43 /* snapshots[]; */ 44} __packed; 45 46struct smb_query_info { 47 __u32 info_type; 48 __u32 file_info_class; 49 __u32 additional_information; 50 __u32 flags; 51 __u32 input_buffer_length; 52 __u32 output_buffer_length; 53 /* char buffer[]; */ 54} __packed; 55 56#define CIFS_IOCTL_MAGIC 0xCF 57#define CIFS_IOC_COPYCHUNK_FILE _IOW(CIFS_IOCTL_MAGIC, 3, int) 58#define CIFS_IOC_SET_INTEGRITY _IO(CIFS_IOCTL_MAGIC, 4) 59#define CIFS_IOC_GET_MNT_INFO _IOR(CIFS_IOCTL_MAGIC, 5, struct smb_mnt_fs_info) 60#define CIFS_ENUMERATE_SNAPSHOTS _IOR(CIFS_IOCTL_MAGIC, 6, struct smb_snapshot_array) 61#define CIFS_QUERY_INFO _IOWR(CIFS_IOCTL_MAGIC, 7, struct smb_query_info)