[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-cifs
Subject:    Truncate operation
From:       grunbok () US ! IBM ! COM
Date:       1999-02-03 20:00:28
[Download RAW message or body]


I have a client that is performing a DosSetFileLock which locks a byte
range in a file
say from 0 to 15.  It then performs an ftrunc operation which truncates the
file to a length of 5.
The SMB that we're using is a write of 0 bytes at offset 5 which will
truncate the file.  The
problem is that the truncate works.  This is going to an NT server and the
disk partition
is a FAT partition.  First it seems that the truncate shouldn't work, since
the byte range is
locked. ( and we varified this with a write from another process on the NT
box)
and second, assuming that there is nothing we can do to prevent the write
from
happening, is there another SMB that can be used to truncate the file that
will honor
the byte range lock?


Warren Grunbok
AS/400 Coupled Solutions
Tie-Line: 852-5815
External: (607) 752-5815
Internal address: grunbok@ibmusm07
External internet address: grunbok@us.ibm.com

----------------------------------------------------------------
Users Guide http://www.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic