Deutsch English Français Italiano |
<v4c6cj$1lki1$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.lang.c Subject: Re: Running an editor from ANSI C Date: Wed, 12 Jun 2024 15:04:19 +0200 Organization: A noiseless patient Spider Lines: 48 Message-ID: <v4c6cj$1lki1$2@dont-email.me> References: <v3pge7$uf2i$1@dont-email.me> <v3r2pl$16mtl$1@dont-email.me> <v3r7v8$1b57j$1@dont-email.me> <v3rek5$1c4i5$1@dont-email.me> <v3rrtm$1e6g8$1@dont-email.me> <v3ru84$1eafb$1@dont-email.me> <87o78dzw1a.fsf@nosuchdomain.example.com> <v3tkmb$1o860$3@dont-email.me> <v3uk0l$20s0s$2@dont-email.me> <v3uoeo$21g4g$5@dont-email.me> <v3v6jt$23q0b$2@dont-email.me> <v3vk3m$265uv$1@dont-email.me> <v44itr$3jn4i$1@dont-email.me> <v46o75$dnnu$1@dont-email.me> <v46qj9$e4lf$1@dont-email.me> <v46uha$fj5k$1@dont-email.me> <v47c92$hv04$1@dont-email.me> <v4bl16$1ieto$1@dont-email.me> <v4bton$2vgg$1@news.gegeweb.eu> <v4bvns$1kf32$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 12 Jun 2024 15:04:20 +0200 (CEST) Injection-Info: dont-email.me; posting-host="56b4a0ed48525cf719a93689486bb34c"; logging-data="1757761"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pvpN2w09j4NJ81vuel9i3DKciwcnThA4=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha1:wKI8zP2yXs0+dUnJ7Ve/kaeoLLI= Content-Language: en-GB In-Reply-To: <v4bvns$1kf32$1@dont-email.me> Bytes: 3812 On 12/06/2024 13:10, Malcolm McLean wrote: > On 12/06/2024 11:37, tTh wrote: >> On 6/12/24 10:08, Malcolm McLean wrote: >> >>>> I'd expect to run ksh commands from within ksh, bash commands from >>>> within bash, etc. >>>> >>>> I wouldn't expect a filesystem to be part of the shell at all. >>>> >>> >>> You'd expect to have a FileSystem file, and to type in at your ksh orz >>> zsh, cd "myfilesysyem.xml" and for ksh to mount it. But of course ksh >>> can't do that, because it doesn't recognise that format. >> >> Unless someone writes a module for fuse that allows this kind >> of manipulation. >> >> I've already come across this kind of thing, which made it >> possible to read images from floppy disks of old systems. >> > I'd be interested in doing that. And may thnaks to David Brown for > mentining that this isnpossible. However it wouldn't be part of Baby X. > > I had a quick look at the fuse webite, and I couldn't for the life of me > work out how to write a short fuse script to mount such a simple > directory structure as a FileSystem XML file. > > I'm sure it's possible and not too hard to do. But it's the sort of > thing people do for money. > I'm sure some people do it for money - but I think others make libfuse filesystems for fun. Typical uses include accessing remote data (such as over ssh, webdav, google drives), supporting weird, awkward or outdated filesystems (like NTFS), accessing data within packed or encrypted files (like zip files or backup files), prototyping filesystems that you hope will make it to the Linux kernel one day, exposing interfaces or control information like a file system, and so on. At its simplest, it's just a matter of implementing functions for listing a directory, opening and closing files, reading and writing them, and similar functions. I'd imagine that write support for files within your XML file would be awkward, but I would be very surprised if anything in a libfuse solution is at all harder than implementing the same thing in your shell.