1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Log sys error for lseek

This commit is contained in:
Zdenek Kabelac 2012-03-01 21:19:20 +00:00
parent dc1be80b26
commit cf518842b4

View File

@ -269,7 +269,8 @@ static int _memlock_maps(struct cmd_context *cmd, lvmlock_t lock, size_t *mstats
return 0; return 0;
} }
} }
lseek(_maps_fd, 0, SEEK_SET); if (lseek(_maps_fd, 0, SEEK_SET))
log_sys_error("lseek", _procselfmaps);
for (len = 0 ; len < _maps_len; len += n) { for (len = 0 ; len < _maps_len; len += n) {
if (!(n = read(_maps_fd, _maps_buffer + len, _maps_len - len))) { if (!(n = read(_maps_fd, _maps_buffer + len, _maps_len - len))) {
_maps_buffer[len] = '\0'; _maps_buffer[len] = '\0';