mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
CUpdateSettings:: allow choose tmp(ramfs,TMPFS_MAGIC) as update dir
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6f07cbe3dd
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-10-08 (Tue, 08 Oct 2013)
Origin message was:
------------------
CUpdateSettings:: allow choose tmp(ramfs,TMPFS_MAGIC) as update dir
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -206,7 +206,7 @@ int safe_mkdir(char * path)
|
||||
}
|
||||
|
||||
/* function used to check is this dir writable, i.e. not flash, for record etc */
|
||||
int check_dir(const char * dir)
|
||||
int check_dir(const char * dir, bool allow_tmp)
|
||||
{
|
||||
/* default to return, if statfs fail */
|
||||
int ret = -1;
|
||||
@@ -223,12 +223,16 @@ int check_dir(const char * dir)
|
||||
case 0x58465342L: /*xfs*/
|
||||
case 0x4d44L: /*msdos*/
|
||||
case 0x0187: /* AUTOFS_SUPER_MAGIC */
|
||||
case 0x858458f6L: /*ramfs*/
|
||||
#if 0
|
||||
case 0x72b6L: /*jffs2*/
|
||||
#endif
|
||||
ret = 0;
|
||||
break; //ok
|
||||
ret = 0;//ok
|
||||
break;
|
||||
case 0x858458f6L: /*ramfs*/
|
||||
case 0x1021994: /*TMPFS_MAGIC*/
|
||||
if(allow_tmp)
|
||||
ret = 0;//ok
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "%s Unknown filesystem type: 0x%x\n", dir, (int)s.f_type);
|
||||
break; // error
|
||||
|
Reference in New Issue
Block a user