From: Derrick Brashear Date: Mon, 31 Jan 2005 04:13:36 +0000 (+0000) Subject: STABLE14-largefile-efbig-20050113 X-Git-Tag: openafs-devel-1_3_78~41 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e54dc999eb6ff125efe240e7e30da8914037a4ad;p=packages%2Fo%2Fopenafs.git STABLE14-largefile-efbig-20050113 FIXES 16964 return EFBIG instead of E2BIG (cherry picked from commit 0a872abd75fa27bb91aa2724c54fc72fce03f241) --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index ddb8335e5..ac8fe9f73 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -2308,13 +2308,13 @@ SRXAFS_FetchData64(struct rx_call * acall, struct AFSFid * Fid, afs_int64 Pos, #ifdef AFS_64BIT_ENV #ifndef AFS_LARGEFILE_ENV if (Pos + Len > 0x7fffffff) - return E2BIG; + return EFBIG; #endif /* !AFS_LARGEFILE_ENV */ tPos = (afs_sfsize_t) Pos; tLen = (afs_sfsize_t) Len; #else /* AFS_64BIT_ENV */ if (Pos.high || Len.high) - return E2BIG; + return EFBIG; tPos = Pos.low; tLen = Len.low; #endif /* AFS_64BIT_ENV */ @@ -3121,14 +3121,14 @@ SRXAFS_StoreData64(struct rx_call * acall, struct AFSFid * Fid, #ifdef AFS_64BIT_ENV #ifndef AFS_LARGEFILE_ENV if (FileLength > 0x7fffffff) - return E2BIG; + return EFBIG; #endif /* !AFS_LARGEFILE_ENV */ tPos = (afs_fsize_t) Pos; tLength = (afs_fsize_t) Length; tFileLength = (afs_fsize_t) FileLength; #else /* AFS_64BIT_ENV */ if (FileLength.high) - return E2BIG; + return EFBIG; tPos = Pos.low; tLength = Length.low; tFileLength = FileLength.low;