[LU-7998] Resource acquired to fd may be lost in mount_utils.c Created: 08/Apr/16 Updated: 21/Apr/16 Resolved: 21/Apr/16 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.9.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Dmitry Eremin (Inactive) | Assignee: | Dmitry Eremin (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | kw | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
364 for (i = 0; i < MAX_LOOP_DEVICES; i++) { 365 char cmd[PATH_MAX]; 366 int cmdsz = sizeof(cmd); 367 368 #ifdef HAVE_LOOP_CTL_GET_FREE 369 ret = open("/dev/loop-control", O_RDWR); 370 if (ret < 0) {...} 374 /* find or allocate a free loop device to use */ 375 i = ioctl(ret, LOOP_CTL_GET_FREE); 376 if (i < 0) { 377 fprintf(stderr, "%s: access loop control error\n", progname); 378 return EACCES; 379 } |
| Comments |
| Comment by Gerrit Updater [ 08/Apr/16 ] |
|
Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: http://review.whamcloud.com/19408 |
| Comment by Gerrit Updater [ 21/Apr/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/19408/ |
| Comment by Joseph Gmitter (Inactive) [ 21/Apr/16 ] |
|
Landed to master for 2.9.0 |