diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-26 08:35:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:04:46 -0500 |
commit | 7f60959e64c4281e02fd11fbcce2d15f43da1892 (patch) | |
tree | 86794928852f8a5d554335a5bd4649ca8bf25cbb /source4/ntvfs/posix/pvfs_write.c | |
parent | cfc843cf2990a39166fb9ae54b6ef02d927479d2 (diff) | |
download | samba-7f60959e64c4281e02fd11fbcce2d15f43da1892.tar.gz samba-7f60959e64c4281e02fd11fbcce2d15f43da1892.tar.bz2 samba-7f60959e64c4281e02fd11fbcce2d15f43da1892.zip |
r3253: - added rudimentary support for ntioctl in pvfs
- catch the SIGXFSZ signal, which for some completely insane reason is
generated in current Linux systems when you write before the maximum
offset in a file (maximum is 2^41 on my box). Why wasn't errno good
enough for this?
- give the right ntstatus code for large offset write failures
(This used to be commit 367f0c2af409e4292f727e8a865762a008fd7e67)
Diffstat (limited to 'source4/ntvfs/posix/pvfs_write.c')
-rw-r--r-- | source4/ntvfs/posix/pvfs_write.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_write.c b/source4/ntvfs/posix/pvfs_write.c index 7ab1d340bd..235a21882a 100644 --- a/source4/ntvfs/posix/pvfs_write.c +++ b/source4/ntvfs/posix/pvfs_write.c @@ -65,6 +65,9 @@ NTSTATUS pvfs_write(struct ntvfs_module_context *ntvfs, wr->writex.in.count, wr->writex.in.offset); if (ret == -1) { + if (errno == EFBIG) { + return NT_STATUS_INVALID_PARAMETER; + } return map_nt_error_from_unix(errno); } |