Harshavardhana
62f8343879
Add constants for commonly used values. ( #3588 )
...
This is a consolidation effort, avoiding usage
of naked strings in codebase. Whenever possible
use constants which can be repurposed elsewhere.
This also fixes `goconst ./...` reported issues.
8 years ago
Harshavardhana
1c699d8d3f
fs: Re-implement object layer to remember the fd ( #3509 )
...
This patch re-writes FS backend to support shared backend sharing locks for safe concurrent access across multiple servers.
8 years ago
Anis Elleuch
8ceb969445
tests: Use testTmpDir var to specify tmp directory ( #3459 )
...
To be able to specify the directory where tests will be done. This way,
it will be easier to run Minio tests on a mounted directory like NFS, ..
8 years ago
Harshavardhana
2f373684f5
Fix the server startup messages and help text. ( #3211 )
8 years ago
Harshavardhana
f3c6c55719
posix: Fix windows performance issues. ( #3132 )
...
Do not attempt to fetch volume/drive information for
each i/o situation. In our case we do this in all calls
`posix.go` this in-turn created a terrible situation for
windows. This issue does not affect the i/o path on Unix
platforms since statvfs calls are in the range of micro
seconds on these platforms.
This verification is only needed during startup and we
let things fail at a later stage on windows.
8 years ago
Anis Elleuch
a47ce7ab22
Add support of fallocate for FS and XL backends ( #3032 )
8 years ago
Harshavardhana
9e2d0ac50b
Move to URL based syntax formatting. ( #3092 )
...
For command line arguments we are currently following
- <node-1>:/path ... <node-n>:/path
This patch changes this to
- http://<node-1>/path ... http://<node-n>/path
8 years ago
Harshavardhana
8d2347bc7b
storage: DeleteFile should return errFileNotFound for ENOENT. ( #2978 )
8 years ago
Anis Elleuch
d936ed90ae
Avoid testing on system errors strings in posix ( #2583 )
8 years ago
Harshavardhana
bccf549463
server: Move all the top level files into cmd folder. ( #2490 )
...
This change brings a change which was done for the 'mc'
package to allow for clean repo and have a cleaner
github drop in experience.
8 years ago
karthic rao
0b225269e1
tests: posix: tests cleaning up and enhancing coverage. ( #2410 )
8 years ago
karthic rao
5b86dd7659
Tests: Cleanup/Enhancement: Add few more cases to posix.ReadFile tests and use a cleaner posixTestSetup for posix tests ( #2330 )
8 years ago
Harshavardhana
cf9ba7b88f
tests: Add missing unit test for posix.ReadFile. ( #2319 )
8 years ago
Harshavardhana
de468f92ec
posix: ReadAll should handle the case when parent is not a dir. ( #2163 )
...
It can happen so that a read request can come for a file which
already has a parent i.e a file.
This fix handles this scenario - fixes #2047
8 years ago
Bala FA
8d4365d23c
tests: add unit test for posix functions. ( #2037 )
...
Unit tests for posix operations.
* MakeVol
* DeleteVol
* StatVol
* ListVols
* DeleteFile
* AppendFile
* RenameFile
* StatFile
Fixes #2021
9 years ago
Harshavardhana
d64c3fd464
posix: Return errDiskNotWritable during disk initialization. ( #2048 )
...
It can happen that minio server might not have
writable permissions on the export paths command line.
Fixes #2035
9 years ago
Bala FA
57bc08cc7e
posix: remove disk free space check for read-only and delete methods. ( #2033 )
9 years ago
Harshavardhana
42286cba70
XL: Implement new ReadAll API for files which are read in single call. ( #1974 )
...
Add a unit test as well.
9 years ago