aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/file.go
AgeCommit message (Collapse)AuthorFilesLines
2022-02-27remove dead codechrislu1-406/+0
2022-02-12blocks countchrislu1-2/+2
2022-01-17ensure entry view cache is invalidatedchrislu1-0/+8
2022-01-12POSIX: change timestamp on each attribute changechrislu1-0/+4
2022-01-12POSIX: different inode for same named different file typeschrislu1-1/+2
2022-01-12POSIX: adjust ctime for file truncatechrislu1-0/+2
2022-01-12add logs for request modechrislu1-1/+1
2022-01-11POSIX: ensure file and directory inodes are differentchrislu1-1/+1
this is just an in memory representation. POSIX wants different inode numbers for the same named file or directory.
2022-01-10mount: file fsyncchrislu1-2/+3
fix https://github.com/chrislusf/seaweedfs/issues/2561
2021-12-28if this is enabled, there are some "bus error" with git clonechrislu1-1/+1
2021-12-28fuse: change to direct io modechrislu1-0/+1
before and after: chrislu$ time dd if=/dev/random of=/Users/chrislu/tmp/mm/testfile bs=131072 count=8192 8192+0 records in 8192+0 records out 1073741824 bytes transferred in 4.534068 secs (236816430 bytes/sec) dd if=/dev/random of=/Users/chrislu/tmp/mm/testfile bs=131072 count=8192 0.01s user 3.86s system 84% cpu 4.561 total chrislu$ time dd if=/dev/random of=/Users/chrislu/tmp/mm/testfile bs=131072 count=8192 8192+0 records in 8192+0 records out 1073741824 bytes transferred in 3.824072 secs (280784948 bytes/sec) dd if=/dev/random of=/Users/chrislu/tmp/mm/testfile bs=131072 count=8192 0.01s user 3.22s system 83% cpu 3.857 total
2021-12-26use streaming mode for long poll grpc callschrislu1-2/+2
streaming mode would create separate grpc connections for each call. this is to ensure the long poll connections are properly closed.
2021-12-20remove writeOnly flagchrislu1-1/+1
2021-10-30rename API to avoid confusionChris Lu1-3/+3
2021-08-09mount: cache on reading remote storageChris Lu1-0/+27
2021-07-01go fmtChris Lu1-1/+1
2021-07-01small optimizationChris Lu1-4/+4
2021-06-02remove file handle locking for setattrChris Lu1-10/+0
2021-06-02mount: skip persisting metadata if file is openChris Lu1-4/+16
2021-05-13reduce logsChris Lu1-2/+2
2021-05-09mount: in case the set attribute is called before persisting the fileChris Lu1-3/+3
2021-05-06remove verbose logsChris Lu1-1/+1
2021-05-06mount: skip local chunk cache if opened write onlyChris Lu1-1/+1
2021-04-20ensure file handles are releasedChris Lu1-1/+1
2021-04-19delay new file creation unless file is opened exclusivelyChris Lu1-0/+1
2021-04-18correctly runs git cloneChris Lu1-11/+15
2021-04-18WIPChris Lu1-1/+5
no memory issue if some directory is removed, it may have this error $ rm -Rf ~/tmp/m2/s1 rm: fts_read: Device not configured
2021-04-18cleaner way to set readonlyChris Lu1-12/+0
2021-04-15ensure consistent inode valueChris Lu1-1/+1
2021-04-14lighten up File objectChris Lu1-1/+1
file.entry only exists when file.isOpen
2021-04-14go fmtChris Lu1-6/+6
2021-04-14move file reader, entryViewCache to file handleChris Lu1-44/+1
reduce file object size
2021-04-04mount: add readOnly optionChris Lu1-0/+12
fix https://github.com/chrislusf/seaweedfs/issues/1961
2021-03-22mount: release resources when Forget() is calledChris Lu1-7/+16
address https://github.com/chrislusf/seaweedfs/issues/1929
2021-03-21ensure entry attribute is not nillChris Lu1-0/+3
fix https://github.com/chrislusf/seaweedfs/issues/1926
2021-03-16reverting 7d57664c2d80f2b7d3eb4cecc57a3275bafee44dChris Lu1-24/+22
2021-03-16report error if entry not foundChris Lu1-0/+4
2021-03-12mount: internals switch to filer.Entry instead of protobufChris Lu1-22/+24
2021-03-09properly lock file.entry objectChris Lu1-5/+22
fix https://github.com/chrislusf/seaweedfs/issues/1882
2021-03-02reduce possibility of nil entryChris Lu1-12/+12
2021-01-26mount: properly invalidate kernel node cache entryChris Lu1-5/+2
fix https://github.com/chrislusf/seaweedfs/issues/1752
2021-01-24mount: outsideContainerClusterMode proxy through filerChris Lu1-3/+2
Running mount outside of the cluster would not need to expose all the volume servers to outside of the cluster. The chunk read and write will go through the filer.
2021-01-24Revert "mount: when outside cluster network, use filer as proxy to access ↵Chris Lu1-2/+2
volume servers" This reverts commit 096e088d7bb2a5dce7573b24c2d3006d1cb6f9ec.
2021-01-24mount: when outside cluster network, use filer as proxy to access volume serversChris Lu1-2/+2
2021-01-22mount: use direct_io to avoid OS page cacheChris Lu1-0/+3
fix https://github.com/chrislusf/seaweedfs/issues/1752
2020-11-15go fmtChris Lu1-1/+1
2020-11-03ensure entryViewCache is in sync with the chunksChris Lu1-1/+1
2020-11-03in case some chunks modified earliar are added laterChris Lu1-5/+27
2020-10-30make a copy of the filer.entry for most read operationsChris Lu1-37/+44
2020-10-30clear file.entryChris Lu1-0/+6