diff mbox

[1/9] add struct FILE_STANDARD_INFO

Message ID 1385116018-14068-2-git-send-email-gbeck@sernet.de (mailing list archive)
State New, archived
Headers show

Commit Message

Gregor Beck Nov. 22, 2013, 10:26 a.m. UTC
---
 cifspdu.h |   10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Jeff Layton Nov. 22, 2013, 2:15 p.m. UTC | #1
On Fri, 22 Nov 2013 11:26:50 +0100
Gregor Beck <gbeck@sernet.de> wrote:

> ---
>  cifspdu.h |   10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/cifspdu.h b/cifspdu.h
> index 11ca24a..89aa1f2 100644
> --- a/cifspdu.h
> +++ b/cifspdu.h
> @@ -2233,6 +2233,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

Looks correct...

Acked-by: Jeff Layton <jlayton@redhat.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/cifspdu.h b/cifspdu.h
index 11ca24a..89aa1f2 100644
--- a/cifspdu.h
+++ b/cifspdu.h
@@ -2233,6 +2233,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