Skip to content

Commit

Permalink
add struct FILE_STANDARD_INFO
Browse files Browse the repository at this point in the history
Signed-off-by: Gregor Beck <gbeck@sernet.de>
Reviewed-by: Jeff Layton <jlayton@primarydata.com>
  • Loading branch information
Steve French authored and Steve French committed Jun 28, 2015
1 parent f799d62 commit 80bc83c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fs/cifs/cifspdu.h
Original file line number Diff line number Diff line change
Expand Up @@ -2310,6 +2310,16 @@ typedef struct { /* data block encoding of response to level 263 QPathInfo */
char FileName[1];
} __attribute__((packed)) FILE_ALL_INFO; /* level 0x107 QPathInfo */

typedef struct {
__le64 AllocationSize;
__le64 EndOfFile; /* size ie offset to first free byte in file */
__le32 NumberOfLinks; /* hard links */
__u8 DeletePending;
__u8 Directory;
__u16 Pad;
} __attribute__((packed)) FILE_STANDARD_INFO; /* level 0x102 QPathInfo */


/* defines for enumerating possible values of the Unix type field below */
#define UNIX_FILE 0
#define UNIX_DIR 1
Expand Down

0 comments on commit 80bc83c

Please sign in to comment.