예제 #1
0
        ////

        internal NtStatus FlushFileBuffersProxy(string rawFileName, DokanFileInfo rawFileInfo)
        {
            try
            {
                NtStatus result = _operations.FlushFileBuffers(rawFileName, rawFileInfo);
                return(result);
            }
            catch (Exception ex)
            {
                ServiceRegistration.Get <ILogger>().Warn("Dokan exception: ", ex);
                return(DokanResult.InvalidParameter);
            }
        }
예제 #2
0
 public int FlushFileBuffersProxy(IntPtr rawFileName, ref DOKAN_FILE_INFO rawFileInfo)
 {
     try
     {
         string file = GetFileName(rawFileName);
         int    ret  = operations.FlushFileBuffers(file, ConvertFileInfo(ref rawFileInfo));
         return(ret);
     }
     catch (Exception ex)
     {
         Log.ErrorException("FlushFileBuffersProxy threw: ", ex);
         return(-1);
     }
 }
예제 #3
0
        ////

        public int FlushFileBuffersProxy(string rawFileName,
                                         DokanFileInfo rawFileInfo)
        {
            try
            {
                return((int)_operations.FlushFileBuffers(rawFileName, rawFileInfo));
            }
            catch
            {
#if DEBUG
                throw;
#endif
                return(ERROR_INVALID_FUNCTION);
            }
        }
예제 #4
0
        ////

        public NtStatus FlushFileBuffersProxy(string rawFileName,
                                              DokanFileInfo rawFileInfo)
        {
            try
            {
                logger.Debug("FlushFileBuffersProxy : {0}", rawFileName);
                logger.Debug("\tContext\t{0}", rawFileInfo);

                var result = operations.FlushFileBuffers(rawFileName, rawFileInfo);

                logger.Debug("FlushFileBuffersProxy : {0} Return : {1}", rawFileName, result);
                return(result);
            }
            catch (Exception ex)
            {
                logger.Error("FlushFileBuffersProxy : {0} Throw : {1}", rawFileName, ex.Message);
                return(DokanResult.InvalidParameter);
            }
        }
        ////

        public NtStatus FlushFileBuffersProxy(string rawFileName,
                                              DokanFileInfo rawFileInfo)
        {
            try
            {
                Trace("\nFlushFileBuffersProxy : " + rawFileName);
                Trace("\tContext\t" + ToTrace(rawFileInfo));

                NtStatus result = operations.FlushFileBuffers(rawFileName, rawFileInfo);

                Trace("FlushFileBuffersProxy : " + rawFileName + " Return : " + result);
                return(result);
            }
#pragma warning disable 0168
            catch (Exception ex)
#pragma warning restore 0168
            {
                Trace("FlushFileBuffersProxy : " + rawFileName + " Throw : " + ex.Message);
                return(DokanResult.InvalidParameter);
            }
        }
예제 #6
0
 public NtStatus FlushFileBuffers(string filename, DokanFileInfo info)
 {
     return(ope_.FlushFileBuffers(filename, info));
 }
예제 #7
0
파일: Cache.cs 프로젝트: ericx/dokan-sshfs
 public DokanError FlushFileBuffers(string filename, DokanFileInfo info)
 {
     return(ope_.FlushFileBuffers(filename, info));
 }