- initial oa to null in llog_lvfs_create, avoids crashing
- in llog test 1a, don't try to close if the open failed
- 'lctl modules' hook for llog_test
{
char logname[24];
struct llog_handle *handle;
- struct obdo *oa;
+ struct obdo *oa = NULL;
int rc, open_flags = O_RDWR | O_CREAT | O_LARGEFILE;
ENTRY;
if (name) {
LASSERT(strlen(name) <= 18);
sprintf(logname, "LOGS/%s", name);
-
+
handle->lgh_file = l_filp_open(logname, open_flags, 0644);
if (IS_ERR(handle->lgh_file)) {
rc = PTR_ERR(handle->lgh_file);