[LU-1270] lfs find -size returns "obd_uuid: (null) failed No such device" Created: 29/Mar/12  Updated: 20/Feb/15  Resolved: 20/Feb/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.2.0, Lustre 2.3.0
Fix Version/s: Lustre 2.4.0

Type: Bug Priority: Minor
Reporter: Zhenyu Xu Assignee: Zhenyu Xu
Resolution: Fixed Votes: 2
Labels: None
Environment:

master branch


Issue Links:
Duplicate
is duplicated by LU-341 Test failure on test suite sanity tes... Resolved
Severity: 3
Rank (Obsolete): 7617

 Description   

reproduce procedure:

[mount a lustre filesystem on /mnt/lustre]
$ touch /mnt/lustre/a
$ lfs find -size +0 /mnt/lustre
/mnt/lustre
obd_uuid: (null) failed No such device

root cause:
In cb_find_init(), when a regular file's size or time to be checked, the code path goes under to

cb_find_init()
        while (!decision) {
                /* For regular files with the stripe the decision may have not
                 * been taken yet if *time or size is to be checked. */
                LASSERT((S_ISREG(st->st_mode) &&
                        param->lmd->lmd_lmm.lmm_stripe_count) ||
                        param->mdtindex != OBD_NOT_FOUND);

                if (param->obdindex != OBD_NOT_FOUND)
                        print_failed_tgt(param, path, LL_STATFS_LOV);

                if (param->mdtindex != OBD_NOT_FOUND)
                        print_failed_tgt(param, path, LL_STATFS_LMV);

And during the whole process, param->mdtindex hasn't initialized to OBD_NOT_FOUND, and print_failed_tgt() cannot find anything since none of obd uuid was specified in the process.



 Comments   
Comment by Zhenyu Xu [ 29/Mar/12 ]

master (2.3) patch tracking at http://review.whamcloud.com/2411

Comment by Zhenyu Xu [ 30/Mar/12 ]

b2_2 patch tracking at http://review.whamcloud.com/2412

Comment by James A Simmons [ 27/Nov/12 ]

Patch has been code rotting. Time to rebase it

Comment by James A Simmons [ 28/Jan/13 ]

Patch has been merged to master. No work needs to be done for b1_8 or b2_1 since params->mdtindex does not exist. No further work is being done on 2.2 or 2.3 so we can close this ticket.

Comment by Cory Spitz [ 09/Apr/13 ]

Since 2411 landed, time to close.

Comment by James A Simmons [ 11/Jul/13 ]

Peter I think you can close this ticket.

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