Ejemplo n.º 1
0
        public int SetAllocationSize(string filename, long length, DokanFileInfo info)
        {
            CacheEntry entry = cache_.Lookup(filename);

            entry.RemoveGetFileInfoCache();

            return(ope_.SetAllocationSize(filename, length, info));
        }
Ejemplo n.º 2
0
        public int SetAllocationSizeProxy(
            IntPtr rawFileName,
            long rawLength,
            ref DOKAN_FILE_INFO rawFileInfo)
        {
            try
            {
                string file = GetFileName(rawFileName);

                return(operations_.SetAllocationSize(file, rawLength, GetFileInfo(ref rawFileInfo)));
            }
            catch (Exception e)
            {
                Console.Error.WriteLine(e.ToString());
                return(-1);
            }
        }