[LU-7220] Resource acquired to fd may be lost Created: 28/Sep/15  Updated: 18/Apr/16  Resolved: 18/Apr/16

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.9.0

Type: Bug Priority: Trivial
Reporter: Dmitry Eremin (Inactive) Assignee: Dmitry Eremin (Inactive)
Resolution: Fixed Votes: 0
Labels: easy, kw

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

lustre/utils/llog_reader.c in function main():

    fd = open(argv[1], O_RDONLY);
    if (fd < 0) {...}

    is_ext = is_fstype_ext(fd);
    if (is_ext < 0) {
	printf("Unable to determine type of filesystem containing %s\n",
	       argv[1]);
	goto out;                    <<<====
    }

[...]

out_fd:
    close(fd);
out:
    return rc;


 Comments   
Comment by Gerrit Updater [ 08/Apr/16 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: http://review.whamcloud.com/19407
Subject: LU-7220 llog: fix fd lost and correct error reporting
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 7afd3440a36e31b13f860af01106de9088e437e9

Comment by Gerrit Updater [ 17/Apr/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/19407/
Subject: LU-7220 llog: fix fd lost and correct error reporting
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 0d5a9a777adfb014ff04830d3bdc249561233e88

Comment by Joseph Gmitter (Inactive) [ 18/Apr/16 ]

The patch has landed to master for 2.9.0

Generated at Sat Feb 10 02:07:01 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.