Changeset 4979403 in mainline for uspace/srv/fs
- Timestamp:
- 2011-09-23T15:39:07Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 286286c
- Parents:
- 8895d05
- git-author:
- Maurizio Lombardi <m.lombardi85@…> (2011-09-23 15:39:07)
- git-committer:
- Jakub Jermar <jakub@…> (2011-09-23 15:39:07)
- Location:
- uspace/srv/fs
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/cdfs/cdfs.c
r8895d05 r4979403 52 52 .concurrent_read_write = false, 53 53 .write_retains_size = false, 54 .instance = 0, 54 55 }; 55 56 … … 58 59 printf("%s: HelenOS cdfs file system server\n", NAME); 59 60 61 if (argc == 3) { 62 if (!str_cmp(argv[1], "--instance")) 63 cdfs_vfs_info.instance = strtol(argv[2], NULL, 10); 64 else { 65 printf(NAME " Unrecognized parameters"); 66 return -1; 67 } 68 } 69 60 70 if (!cdfs_init()) { 61 71 printf("%s: failed to initialize cdfs\n", NAME); -
uspace/srv/fs/exfat/exfat.c
r8895d05 r4979403 54 54 .name = NAME, 55 55 .concurrent_read_write = false, 56 .write_retains_size = false, 56 .write_retains_size = false, 57 .instance = 0, 57 58 }; 58 59 … … 60 61 { 61 62 printf(NAME ": HelenOS exFAT file system server\n"); 63 64 if (argc == 3) { 65 if (!str_cmp(argv[1], "--instance")) 66 exfat_vfs_info.instance = strtol(argv[2], NULL, 10); 67 else { 68 printf(NAME " Unrecognized parameters"); 69 return -1; 70 } 71 } 62 72 63 73 int rc = exfat_idx_init(); -
uspace/srv/fs/ext2fs/ext2fs.c
r8895d05 r4979403 52 52 vfs_info_t ext2fs_vfs_info = { 53 53 .name = NAME, 54 .instance = 0, 54 55 }; 55 56 … … 57 58 { 58 59 printf(NAME ": HelenOS EXT2 file system server\n"); 60 61 if (argc == 3) { 62 if (!str_cmp(argv[1], "--instance")) 63 ext2fs_vfs_info.instance = strtol(argv[2], NULL, 10); 64 else { 65 printf(NAME " Unrecognized parameters"); 66 return -1; 67 } 68 } 59 69 60 70 async_sess_t *vfs_sess = service_connect_blocking(EXCHANGE_SERIALIZE, -
uspace/srv/fs/fat/fat.c
r8895d05 r4979403 54 54 .name = NAME, 55 55 .concurrent_read_write = false, 56 .write_retains_size = false, 56 .write_retains_size = false, 57 .instance = 0, 57 58 }; 58 59 … … 61 62 printf(NAME ": HelenOS FAT file system server\n"); 62 63 64 if (argc == 3) { 65 if (!str_cmp(argv[1], "--instance")) 66 fat_vfs_info.instance = strtol(argv[2], NULL, 10); 67 else { 68 printf(NAME " Unrecognized parameters"); 69 return -1; 70 } 71 } 72 63 73 int rc = fat_idx_init(); 64 74 if (rc != EOK) -
uspace/srv/fs/locfs/locfs.c
r8895d05 r4979403 55 55 .concurrent_read_write = false, 56 56 .write_retains_size = false, 57 .instance = 0, 57 58 }; 58 59 … … 61 62 printf("%s: HelenOS Device Filesystem\n", NAME); 62 63 64 if (argc == 3) { 65 if (!str_cmp(argv[1], "--instance")) 66 locfs_vfs_info.instance = strtol(argv[2], NULL, 10); 67 else { 68 printf(NAME " Unrecognized parameters"); 69 return -1; 70 } 71 } 72 73 63 74 if (!locfs_init()) { 64 75 printf("%s: failed to initialize locfs\n", NAME); -
uspace/srv/fs/mfs/mfs.c
r8895d05 r4979403 39 39 40 40 #include <ipc/services.h> 41 #include <stdlib.h> 42 #include <str.h> 41 43 #include <ns.h> 42 44 #include <async.h> … … 52 54 .concurrent_read_write = false, 53 55 .write_retains_size = false, 56 .instance = 0, 54 57 }; 55 58 … … 59 62 60 63 printf(NAME ": HelenOS Minix file system server\n"); 64 65 if (argc == 3) { 66 if (!str_cmp(argv[1], "--instance")) 67 mfs_vfs_info.instance = strtol(argv[2], NULL, 10); 68 else { 69 printf(NAME " Unrecognized parameters"); 70 rc = -1; 71 goto err; 72 } 73 } 61 74 62 75 async_sess_t *vfs_sess = service_connect_blocking(EXCHANGE_SERIALIZE, -
uspace/srv/fs/tmpfs/tmpfs.c
r8895d05 r4979403 59 59 .concurrent_read_write = false, 60 60 .write_retains_size = false, 61 .instance = 0, 61 62 }; 62 63 … … 64 65 { 65 66 printf(NAME ": HelenOS TMPFS file system server\n"); 67 68 if (argc == 3) { 69 if (!str_cmp(argv[1], "--instance")) 70 tmpfs_vfs_info.instance = strtol(argv[2], NULL, 10); 71 else { 72 printf(NAME " Unrecognized parameters"); 73 return -1; 74 } 75 } 66 76 67 77 if (!tmpfs_init()) {
Note:
See TracChangeset
for help on using the changeset viewer.