catalinux / rgfs (public) (License: GPLv3) (since 2020-11-11) (hash sha1)
Allows mapping of RocketGit storage area into a local directory
List of commits:
Subject Hash Author Date (UTC)
If the write buffer is not enough, limit the size aa62b3515b8ff95f45f63ea4a0a848d9d49d41b2 Catalin(ux) M. BOIE 2022-01-23 19:48:11
More preparations for ebian package 93fc386ff8a32954b2559a76b1bc44ab9ac50b6a Catalin(ux) M. BOIE 2021-12-04 12:44:28
duilder update c7ab77a1da4bac86bbb3decc375e084e2eee994f Catalin(ux) M. BOIE 2021-11-17 16:46:56
.spec file is not genrated anymore because the dep extract phase 8d7838b9d611d53677513c61a1f8e7a31cd94040 Catalin(ux) M. BOIE 2021-11-17 16:35:36
Avoid an overflow 896593e3ec385d03b0f368688407f00881604a95 Catalin(ux) M. BOIE 2021-10-24 10:35:57
Stupid mistake: sizeof(pointer) 0ad966a0968bd2d762950860b4a66db28fc7ee06 Catalin(ux) M. BOIE 2021-10-24 10:18:47
More debugging 68246f79bd9a96fadfbef0d9cd4e884e04ee4f86 Catalin(ux) M. BOIE 2021-10-24 09:40:12
Seems that fuse cannot return any value on read, so adapt to dyn alloc memory 787716468c47f979da048d266a6e0acb569345ab Catalin(ux) M. BOIE 2021-10-24 09:01:56
More debugging 44259f8be40bc2aa8220ed1f76d51e3f54ea5595 Catalin(ux) M. BOIE 2021-10-24 08:30:33
spec: replaced usrbindir with bindir c34fbb313f831714894e528a483db700cdac4e5b Catalin(ux) M. BOIE 2021-10-21 16:38:26
Removed Changelog file from spec because it will not be generated when the rpm is 9dcc332cc2c2c737ec75a86ea620bdcc057c8087 Catalin(ux) M. BOIE 2021-10-21 16:34:15
duilder fixes 6cd9e85084a5989a13fcda3c4d18677df997d423 Catalin(ux) M. BOIE 2021-10-21 15:57:44
Cosmetic 720c239954a7b4bb69dee90993aac588f0e6436a Catalin(ux) M. BOIE 2021-10-21 15:16:35
Sometimes we incorrectly returned 0 instead of the error 8bab245be8f6e2026162d9f7fccf27053f47626e Catalin(ux) M. BOIE 2021-03-29 06:27:54
Do not reconnect if server closed the connection gracefully a06c7349c2bdcedf01e5c54d8e05d3a08c8164b1 Catalin(ux) M. BOIE 2021-02-26 07:51:33
Raised the buffer for readdir 8e9eca1d99e23588c6912db1e122e1846d2f6d29 Catalin(ux) M. BOIE 2021-02-08 05:33:16
Simplify a little bit how code looks (mostly cosmetic) 39a144be4687167a8fbd876b874b276fd079cccd Catalin(ux) M. BOIE 2021-02-02 16:43:40
Do not send not useful variables bf2db44bf15cca4570440ee2eb551d9da7ef8290 Catalin(ux) M. BOIE 2021-02-02 16:35:00
Use RGFS_* environemnt to pass variables to the server 34fad328e3b424d4e50549dd30060e2150a05b07 Catalin(ux) M. BOIE 2021-02-02 16:08:39
Send env variable ce941b5564cb7601d6930b32688f083e22bbb67c Catalin(ux) M. BOIE 2021-01-30 10:51:31
Commit aa62b3515b8ff95f45f63ea4a0a848d9d49d41b2 - If the write buffer is not enough, limit the size
Author: Catalin(ux) M. BOIE
Author date (UTC): 2022-01-23 19:48
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2022-01-23 19:48
Parent(s): 93fc386ff8a32954b2559a76b1bc44ab9ac50b6a
Signing key:
Tree: e7b15bd3913621e9c351e4280caa69c29e0f42b1
File Lines added Lines deleted
rgfs.c 5 7
File rgfs.c changed (mode: 100644) (index 7a3acbe..b58f1ca)
... ... static int rgfs_fuse_getattr(const char *path, struct stat *s)
495 495
496 496 i = 0; i = 0;
497 497 buf[i++] = 0x02; buf[i++] = 0x02;
498 buf[i++] = (len - 1 - 2) >> 8;
499 buf[i++] = len - 1 - 2;
498 buf[i++] = path_len >> 8;
499 buf[i++] = path_len;
500 500 memcpy(buf + i, path, path_len); i += path_len; memcpy(buf + i, path, path_len); i += path_len;
501 501 r = rgfs_send_recv("getattr", buf, i, buf, sizeof(buf)); r = rgfs_send_recv("getattr", buf, i, buf, sizeof(buf));
502 502
 
... ... static int rgfs_fuse_write(const char *path, const char *in, size_t size,
654 654 off_t offset, struct fuse_file_info *fi) off_t offset, struct fuse_file_info *fi)
655 655 { {
656 656 int r, err = 0, i; int r, err = 0, i;
657 unsigned char buf[4 * 4096], cmd;
657 unsigned char buf[16 * 4096], cmd;
658 658 uint16_t path_len, len; uint16_t path_len, len;
659 659 uint64_t u64; uint64_t u64;
660 660 uint16_t u16; uint16_t u16;
 
... ... static int rgfs_fuse_write(const char *path, const char *in, size_t size,
665 665
666 666 path_len = strlen(path); path_len = strlen(path);
667 667 len = 1 + 2 + 2 + 8 + path_len + size; len = 1 + 2 + 2 + 8 + path_len + size;
668 if (len > sizeof(buf)) {
669 xlog(" buffer too small\n");
670 return -EIO;
671 }
668 if (len > sizeof(buf))
669 size -= len - sizeof(buf);
672 670
673 671 i = 0; i = 0;
674 672 buf[i++] = 0x05; buf[i++] = 0x05;
Date/time (UTC) Type Misc Labels
2022-01-30 16:30 build centos-8-x86_64 worker/r1 builder/color=fff worker_elap/41s wait_time/592719s date/2022-01-23 time/19:50
2022-01-30 16:51 build fedora-34-aarch64 worker/r1 builder/color=fff worker_elap/963s wait_time/592794s date/2022-01-23 time/19:50
2022-01-30 16:53 build fedora-34-x86_64 worker/r1 builder/color=fff worker_elap/49s wait_time/594078s date/2022-01-23 time/19:50
2022-01-30 17:14 build fedora-35-aarch64 worker/r1 builder/color=fff worker_elap/969s wait_time/594180s date/2022-01-23 time/19:50
2022-01-30 17:15 build fedora-35-x86_64 worker/r1 builder/color=fff worker_elap/55s wait_time/595421s date/2022-01-23 time/19:50
2022-01-30 17:17 build rocky-8-x86_64 worker/r1 builder/color=fff worker_elap/35s wait_time/595525s date/2022-01-23 time/19:50
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rgfs

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rgfs

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rgfs

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main