1*6a54128fSAndroid Build Coastguard Worker############################################################################## 2*6a54128fSAndroid Build Coastguard Worker# ext2ed.conf # 3*6a54128fSAndroid Build Coastguard Worker# # 4*6a54128fSAndroid Build Coastguard Worker# Configuration file for the extended 2 file system disk editor. # 5*6a54128fSAndroid Build Coastguard Worker############################################################################## 6*6a54128fSAndroid Build Coastguard Worker 7*6a54128fSAndroid Build Coastguard Worker# Ext2Descriptors is the location of the ext2 filesystem structure 8*6a54128fSAndroid Build Coastguard Worker# definitions. 9*6a54128fSAndroid Build Coastguard Worker 10*6a54128fSAndroid Build Coastguard Worker 11*6a54128fSAndroid Build Coastguard WorkerExt2Descriptors @datadir@/ext2.descriptors 12*6a54128fSAndroid Build Coastguard Worker 13*6a54128fSAndroid Build Coastguard Worker 14*6a54128fSAndroid Build Coastguard Worker# Using AlternateDescriptors you can declare additional structures. Those 15*6a54128fSAndroid Build Coastguard Worker# structures can contain only variables. Linking functions to the objects is 16*6a54128fSAndroid Build Coastguard Worker# possible only through source code additions. 17*6a54128fSAndroid Build Coastguard Worker 18*6a54128fSAndroid Build Coastguard Worker 19*6a54128fSAndroid Build Coastguard WorkerAlternateDescriptors 20*6a54128fSAndroid Build Coastguard Worker 21*6a54128fSAndroid Build Coastguard Worker 22*6a54128fSAndroid Build Coastguard Worker# LogFile is the location of the log file. Actual changes to the filesystem 23*6a54128fSAndroid Build Coastguard Worker# are logged there. See also LogChanges. 24*6a54128fSAndroid Build Coastguard Worker 25*6a54128fSAndroid Build Coastguard Worker 26*6a54128fSAndroid Build Coastguard WorkerLogFile /var/log/ext2ed.log 27*6a54128fSAndroid Build Coastguard Worker 28*6a54128fSAndroid Build Coastguard Worker 29*6a54128fSAndroid Build Coastguard Worker# The following selects the default behavior when changes are made to the 30*6a54128fSAndroid Build Coastguard Worker# filesystem. When on, each change will be logged - Both the previous data 31*6a54128fSAndroid Build Coastguard Worker# and the new written data. 32*6a54128fSAndroid Build Coastguard Worker 33*6a54128fSAndroid Build Coastguard Worker 34*6a54128fSAndroid Build Coastguard WorkerLogChanges on 35*6a54128fSAndroid Build Coastguard Worker 36*6a54128fSAndroid Build Coastguard Worker 37*6a54128fSAndroid Build Coastguard Worker# AllowChanges off will not allow ext2ed to do any changes to the 38*6a54128fSAndroid Build Coastguard Worker# filesystem - The "enablewrite" command will not work. When on, enablewrite 39*6a54128fSAndroid Build Coastguard Worker# will still have to be issued to allow write access. 40*6a54128fSAndroid Build Coastguard Worker 41*6a54128fSAndroid Build Coastguard Worker 42*6a54128fSAndroid Build Coastguard WorkerAllowChanges on 43*6a54128fSAndroid Build Coastguard Worker 44*6a54128fSAndroid Build Coastguard Worker 45*6a54128fSAndroid Build Coastguard Worker# With this option you can choose whether ext2ed will allow read-only mode on 46*6a54128fSAndroid Build Coastguard Worker# a mounted filesystem. Read-Write mode is never allowed on a mounted 47*6a54128fSAndroid Build Coastguard Worker# filesystem. 48*6a54128fSAndroid Build Coastguard Worker 49*6a54128fSAndroid Build Coastguard Worker 50*6a54128fSAndroid Build Coastguard WorkerAllowMountedRead on 51*6a54128fSAndroid Build Coastguard Worker 52*6a54128fSAndroid Build Coastguard Worker 53*6a54128fSAndroid Build Coastguard Worker# When ForceExt2 is set to on, the filesystem is assumed to be ext2 54*6a54128fSAndroid Build Coastguard Worker# filesystem, despite the possibly corrupt superblock magic number reading. 55*6a54128fSAndroid Build Coastguard Worker# All the ext2 specific commands will be available despite the possible 56*6a54128fSAndroid Build Coastguard Worker# autodetection failure. 57*6a54128fSAndroid Build Coastguard Worker 58*6a54128fSAndroid Build Coastguard WorkerForceExt2 off 59*6a54128fSAndroid Build Coastguard Worker 60*6a54128fSAndroid Build Coastguard Worker 61*6a54128fSAndroid Build Coastguard Worker# Normally, the various filesystem parameters such as the block size and the 62*6a54128fSAndroid Build Coastguard Worker# total number of blocks are gathered from the ext2 filesystem itself. 63*6a54128fSAndroid Build Coastguard Worker# However, on a corrupt filesystem, ext2ed is unable to get the right 64*6a54128fSAndroid Build Coastguard Worker# parameters. In this case, they will be taken from here. See also 65*6a54128fSAndroid Build Coastguard Worker# ForceDefault. 66*6a54128fSAndroid Build Coastguard Worker 67*6a54128fSAndroid Build Coastguard Worker 68*6a54128fSAndroid Build Coastguard WorkerDefaultBlockSize 1024 69*6a54128fSAndroid Build Coastguard WorkerDefaultTotalBlocks 2097151 # ~2 GB total size 70*6a54128fSAndroid Build Coastguard WorkerDefaultBlocksInGroup 8192 71*6a54128fSAndroid Build Coastguard Worker 72*6a54128fSAndroid Build Coastguard Worker# With ForceDefault on, you can force the use of the default parameters 73*6a54128fSAndroid Build Coastguard Worker# above. This is not recommended, as ext2ed will fallback by default to those 74*6a54128fSAndroid Build Coastguard Worker# parameters if it can't figure up the parameters from the filesystem itself. 75*6a54128fSAndroid Build Coastguard Worker 76*6a54128fSAndroid Build Coastguard Worker 77*6a54128fSAndroid Build Coastguard WorkerForceDefault off 78*6a54128fSAndroid Build Coastguard Worker 79*6a54128fSAndroid Build Coastguard Worker 80