Commit Graph

42739 Commits

Author SHA1 Message Date
Pawel Dziepak
9054c96c17 Move parsing getattrinfo() result out of dns_resolver module 2012-07-05 01:25:17 +02:00
Pawel Dziepak
2353db439e nfs4: Fix error checking after read_port() 2012-07-04 20:52:36 +02:00
Pawel Dziepak
b664395b9e nfs4: Remove several superfluous 'else' 2012-07-04 17:09:22 +02:00
Pawel Dziepak
209c46eec4 nfs4: Let FileSystem::Mount() use FileInfo::ParsePath() 2012-07-04 16:58:45 +02:00
Pawel Dziepak
dd86fd8f4c nfs4: Add few lacking error checks after strdup() or malloc() 2012-07-04 16:52:26 +02:00
Pawel Dziepak
ea70f0aa5c nfs4: Fix error handling problems in FileInfo::UpdateFileHandles() 2012-07-04 16:30:21 +02:00
Pawel Dziepak
7ef9380fb3 nfs4: Fix several problems with IdMapper error handling 2012-07-04 16:30:16 +02:00
Pawel Dziepak
085c6e2d99 nfs4: Fix double free at unmounting 2012-07-04 15:45:08 +02:00
Pawel Dziepak
8f57d30ea4 nfs4: Abandon owner and owner_group when id mapping causes problems 2012-07-03 22:16:08 +02:00
Pawel Dziepak
16ff38f828 nfs4: Support legacy owner and owner_group values 2012-07-03 22:08:35 +02:00
Pawel Dziepak
6197fa881f nfs4: Allow WriteStat() to set UID and GID 2012-07-03 22:00:55 +02:00
Pawel Dziepak
ed097dd0a2 nfs4: Do not attempt to set owner, owner_group when not supported 2012-07-03 21:57:08 +02:00
Pawel Dziepak
b2cea80ce5 nfs4: Add id mapper 2012-07-03 21:52:57 +02:00
Pawel Dziepak
9b7f2d1b24 nfs4: Move file handle recovery code out of Inode class 2012-07-03 19:17:04 +02:00
Pawel Dziepak
fed1e3e967 nfs4: Use FileId in lock owner generation 2012-07-03 01:40:17 +02:00
Pawel Dziepak
a28e873222 nfs4: Use FileInfo instead of filehandle to identify a file 2012-07-03 01:33:41 +02:00
Pawel Dziepak
1a0820703b nfs4: Allow the server to release unused lock owners 2012-07-03 01:12:27 +02:00
Pawel Dziepak
62869605c5 nfs4: Add proper lock owners management 2012-07-02 23:54:48 +02:00
Pawel Dziepak
43975b3d03 nfs4: Renew ClientId less often 2012-07-02 21:10:29 +02:00
Pawel Dziepak
ceed5fe076 nfs4: Solve confusion between bigtime_t and seconds 2012-07-02 21:07:52 +02:00
Pawel Dziepak
17c2a48585 nfs4: Do not get_vnode() if Inode::Create() failed 2012-07-02 20:22:41 +02:00
Pawel Dziepak
0f4dcd8bb3 nfs4: OpenConfirm used wrong filehandle 2012-07-02 20:09:57 +02:00
Pawel Dziepak
62167cc0da nfs4: vfs makes sure that l_start + l_len <= OFF_MAX 2012-07-02 20:01:42 +02:00
Pawel Dziepak
87d2aacd8b nfs4: Be careful when translating unsigned lock length to signed 2012-07-02 19:31:56 +02:00
Pawel Dziepak
89f0513425 nfs4: Enforce checking lock type against open mode 2012-07-02 19:24:40 +02:00
Pawel Dziepak
574521e3f0 nfs4: Use team_id instead of thread_id as lock owner 2012-07-02 19:03:19 +02:00
Pawel Dziepak
2a73e4c578 nfs4: Put file and dir specific code in separate files 2012-06-29 02:15:32 +02:00
Pawel Dziepak
2f03ff09af nfs4: Add full support for lease migration 2012-06-29 02:15:31 +02:00
Pawel Dziepak
6ebe67d0d0 nfs4: Use correct mode in share reclaimation 2012-06-29 02:15:30 +02:00
Pawel Dziepak
55f2930931 nfs4: Filesystem is responsible for its opened files 2012-06-29 02:15:30 +02:00
Pawel Dziepak
ecf46259e7 nfs4: Do not release locks if cookie is NULL 2012-06-29 02:15:29 +02:00
Pawel Dziepak
e586522b51 nfs4: Use MutexLocker for locking 2012-06-29 02:15:28 +02:00
Pawel Dziepak
97b7eb47f7 nfs4: Take advantage of supported_attrs attribute 2012-06-29 02:15:27 +02:00
Pawel Dziepak
7f67d8283e nfs4: Add remove_vnode() hook 2012-06-29 02:15:26 +02:00
Pawel Dziepak
b85115ddfd nfs4: Add stub fsync() hook 2012-06-29 02:15:25 +02:00
Pawel Dziepak
4318f15fa1 nfs4: Check for reace conditions in filehandle recovery 2012-06-29 02:15:25 +02:00
Pawel Dziepak
b75edefd15 nfs4: Add ConnectionStream and ConnectionPacket classes 2012-06-29 02:15:24 +02:00
Pawel Dziepak
0e1fd494e5 nfs4: close() should also wake snoozing threads
When server returns error codes like LOCKED, DEALY, etc the client waits
some time before retrying (unless in O_NONBLOCK mode), close() should wake
snoozing threads.
2012-06-29 02:15:23 +02:00
Pawel Dziepak
f7bf941a8c nfs4: Verify inode number before opening a file 2012-06-29 02:15:22 +02:00
Pawel Dziepak
ef629eaf23 nfs4: Fix LookUp returning wrong error code if file doesn't exist 2012-06-29 02:15:21 +02:00
Pawel Dziepak
7d0b8c9786 nfs4: Add support for file locking 2012-06-29 02:15:20 +02:00
Pawel Dziepak
d764d148b1 Allow file systems to manage file locks
Haiku implements file locking at vfs level. That would not work for remote
and shared file systems, since they need to negotiate locks with peers.
This patch introduces three additional hooks in fs_interface that allow
file system module to take over the management of file locks.
2012-06-29 02:15:19 +02:00
Pawel Dziepak
55899460db nfs4: Add set_flags() hook 2012-06-29 02:15:19 +02:00
Pawel Dziepak
1c97a367c5 nfs4: Add support for O_NONBLOCK mode 2012-06-29 02:15:18 +02:00
Pawel Dziepak
5cf2ee51b8 nfs4: Remove unused entries from inode number to filehandle map 2012-06-29 02:15:17 +02:00
Pawel Dziepak
2f6ae7236d nfs4: Read from st_*tim instead of st_*time 2012-06-29 02:15:16 +02:00
Pawel Dziepak
38a1270e11 nfs4: Wrong filehandle used when creating a file 2012-06-29 02:15:15 +02:00
Pawel Dziepak
abba2fddf1 nfs4: Add write_stat() hook 2012-06-29 02:15:14 +02:00
Pawel Dziepak
684d0a1036 nfs4: Partial handling of NFS4ERR_LEASE_MOVED error 2012-06-29 02:15:13 +02:00
Pawel Dziepak
9737896827 nfs4: Fix removing nodes other than NF4DIR or NF4REG 2012-06-29 02:15:13 +02:00