Lines Matching refs:fname

362   char *fname = NULL;  in put_crypt_ftr_and_key()  local
367 if (get_crypt_ftr_info(&fname, &starting_off)) { in put_crypt_ftr_and_key()
371 if (fname[0] != '/') { in put_crypt_ftr_and_key()
375 if ( (fd = open(fname, O_RDWR | O_CREAT|O_CLOEXEC, 0600)) < 0) { in put_crypt_ftr_and_key()
376 SLOGE("Cannot open footer file %s for put\n", fname); in put_crypt_ftr_and_key()
510 char *fname = NULL; in get_crypt_ftr_and_key() local
513 if (get_crypt_ftr_info(&fname, &starting_off)) { in get_crypt_ftr_and_key()
517 if (fname[0] != '/') { in get_crypt_ftr_and_key()
521 if ( (fd = open(fname, O_RDWR|O_CLOEXEC)) < 0) { in get_crypt_ftr_and_key()
522 SLOGE("Cannot open footer file %s for get\n", fname); in get_crypt_ftr_and_key()
529 SLOGE("footer file %s is not the expected size!\n", fname); in get_crypt_ftr_and_key()
545 SLOGE("Bad magic for real block device %s\n", fname); in get_crypt_ftr_and_key()
603 char *fname; in load_persistent_data() local
637 if (get_crypt_ftr_info(&fname, NULL)) { in load_persistent_data()
646 fd = open(fname, O_RDONLY|O_CLOEXEC); in load_persistent_data()
648 SLOGE("Cannot open %s metadata file", fname); in load_persistent_data()
660 SLOGE("Cannot seek to read persistent data on %s", fname); in load_persistent_data()
695 char *fname; in save_persistent_data() local
721 if (get_crypt_ftr_info(&fname, NULL)) { in save_persistent_data()
725 fd = open(fname, O_RDWR|O_CLOEXEC); in save_persistent_data()
727 SLOGE("Cannot open %s metadata file", fname); in save_persistent_data()
738 SLOGE("Cannot seek to read persistent data on %s", fname); in save_persistent_data()