Re: [lustre-discuss] llapi_layout_file_comp_del

2022-07-28 Thread Andreas Dilger via lustre-discuss
John, you are probably right that allowing a passed fd would also be useful, but nobody has done it this way before because of the need to use O_LOV_DELAY_CREATE within the application code... and to be honest very few applications tune their IO to this extent, especially with PFL layouts being

Re: [lustre-discuss] llapi_layout_file_comp_del

2022-07-28 Thread John Bauer
Andreas, Thanks for the info.  A related question:  I am using the O_LOV_DELAY_CREATE open flag mechanism to open a file and then set the composite layout with llapi_layout_file_open().  I was kind of surprised this worked.  This ends up opening the file twice and I simply close the fd return