- **status**: review --> fixed
- **assigned_to**: Vu Minh Nguyen --> nobody
- **Comment**:
changeset: 7671:577afb0aa443
tag: tip
parent: 7666:17d25dbd9352
user: Tai Dinh <[email protected]>
date: Thu May 26 09:10:56 2016 +0700
summary: log: fix log file sizes grow rapidly and cannot open [#1851]
changeset: 7670:8b273b35351a
branch: opensaf-5.0.x
parent: 7667:eb3eca9d29bd
user: Tai Dinh <[email protected]>
date: Thu May 26 09:10:56 2016 +0700
summary: log: fix log file sizes grow rapidly and cannot open [#1851]
changeset: 7669:2a4b9b67b425
branch: opensaf-4.7.x
user: Tai Dinh <[email protected]>
date: Thu May 26 14:28:50 2016 +0700
summary: log: fix log file sizes grow rapidly and cannot open [#1851]
---
** [tickets:#1851] log: log file sizes grow rapidly and cannot open**
**Status:** fixed
**Milestone:** 4.7.2
**Created:** Thu May 26, 2016 03:12 AM UTC by Vu Minh Nguyen
**Last Updated:** Thu May 26, 2016 03:34 AM UTC
**Owner:** nobody
When file handle thread gets timeout while perfoming write request, the thread
will remove the last log record and return `SA_AIS_TRY_AGAIN` to user.
In that case, in `lseek` function, logsv passed an negative number to `off_t
offset` without converting to `off_t` type. Then,`lseek` sees the `offset` as
an possitive number with signed bit set. And return value of `lseek` - the
offset location, is very very big.
The log file size got big big size when passing that big number to `ftruncate`.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets