@@ -946,7 +946,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
946946 InactiveMrdCacheSize : 1000 ,
947947 RenameDirLimit : 0 ,
948948 TempDir : "" ,
949- PreconditionErrors : true ,
950949 ExperimentalODirect : false ,
951950 Uid : - 1 ,
952951 }
@@ -964,7 +963,7 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
964963 }{
965964 {
966965 name : "normal" ,
967- args : []string {"gcsfuse" , "--dir-mode=0777" , "--disable-parallel-dirops" , "--experimental-enable-dentry-cache" , "--experimental-enable-readdirplus" , "--file-mode=0666" , "--o" , "ro" , "--gid=7" , "--ignore-interrupts=false" , "--kernel-list-cache-ttl-secs=300" , "--rename-dir-limit=10" , "--temp-dir=~/temp" , "--uid=8" , "--precondition-errors=false" , " abc" , "pqr" },
966+ args : []string {"gcsfuse" , "--dir-mode=0777" , "--disable-parallel-dirops" , "--experimental-enable-dentry-cache" , "--experimental-enable-readdirplus" , "--file-mode=0666" , "--o" , "ro" , "--gid=7" , "--ignore-interrupts=false" , "--kernel-list-cache-ttl-secs=300" , "--rename-dir-limit=10" , "--temp-dir=~/temp" , "--uid=8" , "abc" , "pqr" },
968967 expectedConfig : & cfg.Config {
969968 FileSystem : cfg.FileSystemConfig {
970969 DirMode : 0777 ,
@@ -979,7 +978,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
979978 InactiveMrdCacheSize : 1000 ,
980979 RenameDirLimit : 10 ,
981980 TempDir : cfg .ResolvedPath (path .Join (hd , "temp" )),
982- PreconditionErrors : false ,
983981 ExperimentalODirect : false ,
984982 Uid : 8 ,
985983 },
@@ -1002,7 +1000,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
10021000 InactiveMrdCacheSize : 1000 ,
10031001 RenameDirLimit : 0 ,
10041002 TempDir : "" ,
1005- PreconditionErrors : true ,
10061003 ExperimentalODirect : false ,
10071004 Uid : - 1 ,
10081005 },
@@ -1025,7 +1022,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
10251022 InactiveMrdCacheSize : 1000 ,
10261023 RenameDirLimit : 200000 ,
10271024 TempDir : "" ,
1028- PreconditionErrors : true ,
10291025 ExperimentalODirect : false ,
10301026 Uid : - 1 ,
10311027 },
@@ -1050,7 +1046,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
10501046 InactiveMrdCacheSize : 1000 ,
10511047 RenameDirLimit : 0 ,
10521048 TempDir : "" ,
1053- PreconditionErrors : true ,
10541049 ExperimentalODirect : false ,
10551050 Uid : - 1 ,
10561051 },
@@ -1075,7 +1070,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
10751070 InactiveMrdCacheSize : 1000 ,
10761071 RenameDirLimit : 15000 ,
10771072 TempDir : "" ,
1078- PreconditionErrors : true ,
10791073 ExperimentalODirect : false ,
10801074 Uid : - 1 ,
10811075 },
@@ -1150,7 +1144,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
11501144 IgnoreInterrupts : true ,
11511145 InactiveMrdCacheSize : 1000 ,
11521146 ExperimentalODirect : true ,
1153- PreconditionErrors : true ,
11541147 Uid : - 1 ,
11551148 },
11561149 },
@@ -1167,7 +1160,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
11671160 IgnoreInterrupts : true ,
11681161 InactiveMrdCacheSize : 1000 ,
11691162 ExperimentalODirect : false ,
1170- PreconditionErrors : true ,
11711163 Uid : - 1 ,
11721164 MaxReadAheadKb : 1024 ,
11731165 },
@@ -1184,7 +1176,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
11841176 Gid : - 1 ,
11851177 IgnoreInterrupts : true ,
11861178 InactiveMrdCacheSize : 1000 ,
1187- PreconditionErrors : true ,
11881179 Uid : - 1 ,
11891180 MaxReadAheadKb : 0 ,
11901181 },
@@ -1202,7 +1193,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
12021193 IgnoreInterrupts : true ,
12031194 InactiveMrdCacheSize : 1000 ,
12041195 ExperimentalODirect : false ,
1205- PreconditionErrors : true ,
12061196 Uid : - 1 ,
12071197 MaxBackground : 512 ,
12081198 },
@@ -1220,7 +1210,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
12201210 IgnoreInterrupts : true ,
12211211 InactiveMrdCacheSize : 1000 ,
12221212 ExperimentalODirect : false ,
1223- PreconditionErrors : true ,
12241213 Uid : - 1 ,
12251214 MaxBackground : 0 ,
12261215 },
@@ -1238,7 +1227,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
12381227 IgnoreInterrupts : true ,
12391228 InactiveMrdCacheSize : 1000 ,
12401229 ExperimentalODirect : false ,
1241- PreconditionErrors : true ,
12421230 Uid : - 1 ,
12431231 CongestionThreshold : 256 ,
12441232 },
@@ -1256,7 +1244,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
12561244 IgnoreInterrupts : true ,
12571245 InactiveMrdCacheSize : 1000 ,
12581246 ExperimentalODirect : false ,
1259- PreconditionErrors : true ,
12601247 Uid : - 1 ,
12611248 CongestionThreshold : 0 ,
12621249 },
@@ -1274,7 +1261,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
12741261 IgnoreInterrupts : true ,
12751262 InactiveMrdCacheSize : 1000 ,
12761263 ExperimentalODirect : false ,
1277- PreconditionErrors : true ,
12781264 Uid : - 1 ,
12791265 EnableKernelReader : true ,
12801266 },
@@ -1292,7 +1278,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
12921278 IgnoreInterrupts : true ,
12931279 InactiveMrdCacheSize : 1000 ,
12941280 ExperimentalODirect : false ,
1295- PreconditionErrors : true ,
12961281 Uid : - 1 ,
12971282 EnableKernelReader : false ,
12981283 },
@@ -1310,7 +1295,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
13101295 IgnoreInterrupts : true ,
13111296 InactiveMrdCacheSize : 1000 ,
13121297 ExperimentalODirect : false ,
1313- PreconditionErrors : true ,
13141298 Uid : - 1 ,
13151299 KernelParamsFile : "/tmp/params" ,
13161300 },
@@ -1328,7 +1312,6 @@ func TestArgsParsing_FileSystemFlags(t *testing.T) {
13281312 IgnoreInterrupts : true ,
13291313 InactiveMrdCacheSize : 1000 ,
13301314 ExperimentalODirect : false ,
1331- PreconditionErrors : true ,
13321315 Uid : - 1 ,
13331316 KernelParamsFile : "/tmp/config_params" ,
13341317 },
0 commit comments