File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed
src/mpi/romio/adio/common Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,19 @@ static struct ADIO_FSTypes fstypes[] = {
174174 { 0 , 0 , 0 } /* guard entry */
175175};
176176
177+ /* return a pointer to the filesystem prefix
178+ * Return 0 if not found */
179+ const char * ADIO_FileTypeToPrefix (int filetype )
180+ {
181+ int i = 0 ;
182+ while (fstypes [i ].fileops )
183+ {
184+ if (fstypes [i ].fstype == filetype )
185+ return fstypes [i ].prefix ;
186+ ++ i ;
187+ }
188+ return 0 ;
189+ }
177190
178191/*
179192 ADIO_FileSysType_parentdir - determines a string pathname for the
@@ -190,20 +203,6 @@ Output Parameters:
190203*/
191204#ifdef ROMIO_NEEDS_ADIOPARENTDIR
192205
193- /* return a pointer to the filesystem prefix
194- * Return 0 if not found */
195- const char * ADIO_FileTypeToPrefix (int filetype )
196- {
197- int i = 0 ;
198- while (fstypes [i ].fileops )
199- {
200- if (fstypes [i ].fstype == filetype )
201- return fstypes [i ].prefix ;
202- ++ i ;
203- }
204- return 0 ;
205- }
206-
207206/* In a strict ANSI environment, S_ISLNK may not be defined. Fix that
208207 here. We assume that S_ISLNK is *always* defined as a macro. If
209208 that is not universally true, then add a test to the romio
You can’t perform that action at this time.
0 commit comments