Re: [PATCH 1/9] add struct FILE_STANDARD_INFO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 22 Nov 2013 11:26:50 +0100
Gregor Beck <gbeck@xxxxxxxxx> 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@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux