void close( int f, long lastWriteTime ) throws SmbException { if( log.level >= 3 ) log.println( "close: " + f ); /* * Close Request / Response */ send( new SmbComClose( f, lastWriteTime ), blank_resp() ); } void close( long lastWriteTime ) throws SmbException {
void close( int f, long lastWriteTime ) throws SmbException { if( log.level >= 3 ) log.println( "close: " + f ); /* * Close Request / Response */ send( new SmbComClose( f, lastWriteTime ), blank_resp() ); } void close( long lastWriteTime ) throws SmbException {
private long queryFSInformation( int level ) throws SmbException { Trans2QueryFSInformationResponse response; response = new Trans2QueryFSInformationResponse( level ); send( new Trans2QueryFSInformation( level ), response ); if( type == TYPE_SHARE ) { size = response.info.getCapacity(); sizeExpiration = System.currentTimeMillis() + attrExpirationPeriod; } return response.info.getFree(); }
FileEntry[] doNetShareEnum() throws SmbException { SmbComTransaction req = new NetShareEnum(); SmbComTransactionResponse resp = new NetShareEnumResponse(); send(req, resp); if (resp.status != SmbException.ERROR_SUCCESS) throw new SmbException(resp.status, true); return resp.results; } void doNetServerEnum(ArrayList list,
private long queryFSInformation( int level ) throws SmbException { Trans2QueryFSInformationResponse response; response = new Trans2QueryFSInformationResponse( level ); send( new Trans2QueryFSInformation( level ), response ); if( type == TYPE_SHARE ) { size = response.info.getCapacity(); sizeExpiration = System.currentTimeMillis() + attrExpirationPeriod; } return response.info.getFree(); }
void close( int f, long lastWriteTime ) throws SmbException { if( log.level >= 3 ) log.println( "close: " + f ); /* * Close Request / Response */ send( new SmbComClose( f, lastWriteTime ), blank_resp() ); } void close( long lastWriteTime ) throws SmbException {
FileEntry[] doNetShareEnum() throws SmbException { SmbComTransaction req = new NetShareEnum(); SmbComTransactionResponse resp = new NetShareEnumResponse(); send(req, resp); if (resp.status != SmbException.ERROR_SUCCESS) throw new SmbException(resp.status, true); return resp.results; } void doNetServerEnum(ArrayList list,
private long queryFSInformation( int level ) throws SmbException { Trans2QueryFSInformationResponse response; response = new Trans2QueryFSInformationResponse( level ); send( new Trans2QueryFSInformation( level ), response ); if( type == TYPE_SHARE ) { size = response.info.getCapacity(); sizeExpiration = System.currentTimeMillis() + attrExpirationPeriod; } return response.info.getFree(); }
FileEntry[] doNetShareEnum() throws SmbException { SmbComTransaction req = new NetShareEnum(); SmbComTransactionResponse resp = new NetShareEnumResponse(); send(req, resp); if (resp.status != SmbException.ERROR_SUCCESS) throw new SmbException(resp.status, true); return resp.results; } void doNetServerEnum(ArrayList list,
FileEntry[] doNetShareEnum() throws SmbException { SmbComTransaction req = new NetShareEnum(); SmbComTransactionResponse resp = new NetShareEnumResponse(); send(req, resp); if (resp.status != SmbException.ERROR_SUCCESS) throw new SmbException(resp.status, true); return resp.results; } void doNetServerEnum(ArrayList list,
private long queryFSInformation( int level ) throws SmbException { Trans2QueryFSInformationResponse response; response = new Trans2QueryFSInformationResponse( level ); send( new Trans2QueryFSInformation( level ), response ); if( type == TYPE_SHARE ) { size = response.info.getCapacity(); sizeExpiration = System.currentTimeMillis() + attrExpirationPeriod; } return response.info.getFree(); }
void close( int f, long lastWriteTime ) throws SmbException { if( log.level >= 3 ) log.println( "close: " + f ); /* * Close Request / Response */ send( new SmbComClose( f, lastWriteTime ), blank_resp() ); } void close( long lastWriteTime ) throws SmbException {
public void setLength( long newLength ) throws SmbException { // ensure file is open if( file.isOpen() == false ) { file.open( openFlags, 0, SmbFile.ATTR_NORMAL, options ); } SmbComWriteResponse rsp = new SmbComWriteResponse(); file.send( new SmbComWrite( file.fid, (int)(newLength & 0xFFFFFFFFL), 0, tmp, 0, 0 ), rsp ); } public void close() throws SmbException {
public void setLength( long newLength ) throws SmbException { // ensure file is open if( file.isOpen() == false ) { file.open( openFlags, 0, SmbFile.ATTR_NORMAL, options ); } SmbComWriteResponse rsp = new SmbComWriteResponse(); file.send( new SmbComWrite( file.fid, (int)(newLength & 0xFFFFFFFFL), 0, tmp, 0, 0 ), rsp ); } public void close() throws SmbException {
public void setLength( long newLength ) throws SmbException { // ensure file is open if( file.isOpen() == false ) { file.open( openFlags, 0, SmbFile.ATTR_NORMAL, options ); } SmbComWriteResponse rsp = new SmbComWriteResponse(); file.send( new SmbComWrite( file.fid, (int)(newLength & 0xFFFFFFFFL), 0, tmp, 0, 0 ), rsp ); } public void close() throws SmbException {
public void setLength( long newLength ) throws SmbException { // ensure file is open if( file.isOpen() == false ) { file.open( openFlags, 0, SmbFile.ATTR_NORMAL, options ); } SmbComWriteResponse rsp = new SmbComWriteResponse(); file.send( new SmbComWrite( file.fid, (int)(newLength & 0xFFFFFFFFL), 0, tmp, 0, 0 ), rsp ); } public void close() throws SmbException {
void setPathInformation( int attrs, long ctime, long mtime ) throws SmbException { int f, dir; exists(); dir = attributes & ATTR_DIRECTORY; f = open0( O_RDONLY, FILE_WRITE_ATTRIBUTES, dir, dir != 0 ? 0x0001 : 0x0040 ); send( new Trans2SetFileInformation( f, attrs | dir, ctime, mtime ), new Trans2SetFileInformationResponse() ); close( f, 0L ); attrExpiration = 0; }
void setPathInformation( int attrs, long ctime, long mtime ) throws SmbException { int f, dir; exists(); dir = attributes & ATTR_DIRECTORY; f = open0( O_RDONLY, FILE_WRITE_ATTRIBUTES, dir, dir != 0 ? 0x0001 : 0x0040 ); send( new Trans2SetFileInformation( f, attrs | dir, ctime, mtime ), new Trans2SetFileInformationResponse() ); close( f, 0L ); attrExpiration = 0; }
void setPathInformation( int attrs, long ctime, long mtime ) throws SmbException { int f, dir; exists(); dir = attributes & ATTR_DIRECTORY; f = open0( O_RDONLY, FILE_WRITE_ATTRIBUTES, dir, dir != 0 ? 0x0001 : 0x0040 ); send( new Trans2SetFileInformation( f, attrs | dir, ctime, mtime ), new Trans2SetFileInformationResponse() ); close( f, 0L ); attrExpiration = 0; }
void setPathInformation( int attrs, long ctime, long mtime ) throws SmbException { int f, dir; exists(); dir = attributes & ATTR_DIRECTORY; f = open0( O_RDONLY, FILE_WRITE_ATTRIBUTES, dir, dir != 0 ? 0x0001 : 0x0040 ); send( new Trans2SetFileInformation( f, attrs | dir, ctime, mtime ), new Trans2SetFileInformationResponse() ); close( f, 0L ); attrExpiration = 0; }