On Wed, 2005-01-26 at 23:30 +0000, Linux Kernel Mailing List wrote: > ChangeSet 1.1966.1.22, 2005/01/26 17:30:51-06:00, [EMAIL PROTECTED] > > [CIFS] Add support for updating Windows NT times/dates (part 1) > > Signed-off-by: Steve French ([EMAIL PROTECTED]) > > > > cifspdu.h | 35 +++++++++++++++++++++++++---------- > cifssmb.c | 9 ++++++--- > inode.c | 11 +++++------ > 3 files changed, 36 insertions(+), 19 deletions(-) > > > diff -Nru a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h > --- a/fs/cifs/cifspdu.h 2005-03-13 15:10:44 -08:00 > +++ b/fs/cifs/cifspdu.h 2005-03-13 15:10:44 -08:00 > @@ -1592,17 +1592,32 @@ > char LinkDest[1]; > } FILE_UNIX_LINK_INFO; /* level 0x201 QPathInfo */ > > +/* The following three structures are needed only for > + setting time to NT4 and some older servers via > + the primitive DOS time format */ > typedef struct { > - __u16 CreationDate; > - __u16 CreationTime; > - __u16 LastAccessDate; > - __u16 LastAccessTime; > - __u16 LastWriteDate; > - __u16 LastWriteTime; > - __u32 DataSize; /* File Size (EOF) */ > - __u32 AllocationSize; > - __u16 Attributes; /* verify not u32 */ > - __u32 EASize; > + __u16 Day:5; > + __u16 Month:4; > + __u16 Year:7; > +} SMB_DATE; > +
if this is an on the wire format (and it looks like one) then you want this one packed I suspect, and also I wonder if it needs to be byte order specific... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/