Overview
Comment: | Added basic "open" support |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | tcl-ops |
Files: | files | file ages | folders |
SHA1: |
ebbca87b7e1f67a72bd69ff4168467ad |
User & Date: | rkeene on 2014-11-07 12:13:30 |
Other Links: | branch diff | manifest | tags |
Context
2014-11-07
| ||
12:26 | Added basic write support check-in: db5fcbef28 user: rkeene tags: tcl-ops | |
12:13 | Added basic "open" support check-in: ebbca87b7e user: rkeene tags: tcl-ops | |
11:36 | Add "getattr" implementation check-in: d64c2e9bf7 user: rkeene tags: tcl-ops | |
Changes
Modified appfsd.c from [70718fd2dc] to [a228e5eaeb].
︙ | |||
381 382 383 384 385 386 387 | 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 | - + - + - + - + + | Tcl_WideInt attr_value_wide; int attr_value_int; static __thread Tcl_Obj *attr_key_type = NULL, *attr_key_perms = NULL, *attr_key_size = NULL, *attr_key_time = NULL, *attr_key_source = NULL, *attr_key_childcount = NULL; int tcl_ret; interp = appfs_TclInterp(); if (interp == NULL) { |
︙ | |||
470 471 472 473 474 475 476 | 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 | - + | pathinfo->typeinfo.symlink.source[attr_value_int] = '\0'; memcpy(pathinfo->typeinfo.symlink.source, attr_value_str, attr_value_int); } } break; default: |
︙ | |||
575 576 577 578 579 580 581 | 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 | - - + - + + - + + - - + - - - + + + + + - - - + + + + + + + + + + + + - + + + + + + + + + + + + - + - - | } static int appfs_fuse_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi) { Tcl_Interp *interp; Tcl_Obj **children; int children_count, idx; int tcl_ret; |
︙ | |||
774 775 776 777 778 779 780 | 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 | - + | .read = appfs_fuse_read }; /* * FUSE option parsing callback */ static int appfs_fuse_opt_cb(void *data, const char *arg, int key, struct fuse_args *outargs) { |
︙ |
Modified appfsd.tcl from [c564230658] to [23568748fe].
︙ | |||
34 35 36 37 38 39 40 | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | - + | file mkdir [file dirname $file] if {[file exists $file]} { return $file } |
︙ | |||
340 341 342 343 344 345 346 347 348 349 350 351 352 353 | 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 | + | return COMPLETE } proc _localpath {package hostname file} { set homedir [::appfsd::get_homedir] set dir [file join $homedir .appfs "./${package}@${hostname}" "./${file}"] return $dir } proc _parsepath {path} { set path [string trim $path "/"] set path [split $path "/"] set pathlen [llength $path] |
︙ | |||
525 526 527 528 529 530 531 | 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 | + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | return -code error "No such file or directory" } return [array get retval] } proc openpath {path mode} { array set pathinfo [_parsepath $path] |