summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifspdu.h
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2015-06-18 12:10:27 +0200
committerSteve French <steve.french@primarydata.com>2015-06-28 05:25:56 +0200
commit80bc83c360ef04cd1f5f8f0fb9c47669e702c980 (patch)
treeed6bb748644952f67127c77ce48a27c4e4c0966c /fs/cifs/cifspdu.h
parentMake dialect negotiation warning message easier to read (diff)
downloadlinux-80bc83c360ef04cd1f5f8f0fb9c47669e702c980.tar.xz
linux-80bc83c360ef04cd1f5f8f0fb9c47669e702c980.zip
add struct FILE_STANDARD_INFO
Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Jeff Layton <jlayton@primarydata.com>
Diffstat (limited to 'fs/cifs/cifspdu.h')
-rw-r--r--fs/cifs/cifspdu.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h
index 5f9822ac0245..998a66ffe01e 100644
--- a/fs/cifs/cifspdu.h
+++ b/fs/cifs/cifspdu.h
@@ -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