summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
4 hoursnfs: Implement --nfs-program command line option to enable v3 functionalityHEADmasterMichael Kelly
Note that I have altered the specification of the argument value so that the version can be specified without the program number rather than the other way around. I think it is much more likely the version would be specified than the program number.
5 hoursnfs: couple of return code checksMichael Kelly
5 hoursnfs: lookup root node handle specified by the mount serverMichael Kelly
to retrieve the true identity.
5 hoursnfs: Use the variables for NFS program and NFS version rather than constants.Michael Kelly
5 hoursnfs: mount_root: Fix and remove comment regarding getservbynameMichael Kelly
as its conclusion was valid and now implemented.
5 hoursnfs: Implement statfs for V3.Michael Kelly
There was little overlap with the v2 code so it got an entirely separate implementation. There is the possibility of completing statfs.f_namelen properly using FSINFO3 and PATHCONF3 rpc calls but I didn't know if f_namelen should be the maximum length for a file name component or the entire file name path.
5 hoursnfs: Removed inapplicable comment in netfs_report_access().Michael Kelly
5 hoursnfs: nfs_attempt_rename() didn't unlock mutex after processing wcc_statMichael Kelly
5 hoursnfs: nfs_attempt_rename() deadlocks performing an exclusive renameMichael Kelly
whilst attempting to lock an already held mutex.
5 hoursnfs: nfs_attempt_lookup() did not unlock mutex on unlikely RPC init failureMichael Kelly
32 hoursMAKEDEV: fix creating non-partstore nodesSamuel Thibault
We want to drop the slice part only in the partstore case. (but still want to change the device in case of USB disk)
32 hoursMAKEDEV: Support /dev/ucd for USB cdromsSamuel Thibault
34 hoursnfs: Fix netfs_attempt_create_file for nfsv3Michael Kelly
The v3 netfs_attempt_create_file() uses the 'exclusive' creation protocol which cannot specify the file permission bits or uid/gid. These need to be applied post-creation using SETATTR3. There was a missing call to do the chmod part  which I've added. Previously the call to chown that was present did not consider the return value. I have done so.
34 hoursnfs: Fixes netfs_attempt_read() for nfsv3Michael Kelly
Use the 64 bit value required for v3 'offset' and process opaque_data part of the reply properly.
34 hoursnfs: Fixes netfs_attempt_create_file() unlockingMichael Kelly
for unlikely case of RPC init failure and processing of v3 reply
34 hoursnfs: Fix file creation for nfsv3Michael Kelly
This adds new code to process the reply from a file creation operation that applies equally to CREATE3, MKDIR3, SYMLINK3 and MKNOD3. RFC1813 permits a reply without the created file's handle and it might be necessary to perform a LOOKUP3 on the created file post-creation. Debian Linux NFSV3 server actually always returns the handle when compiling gnumach however I have tested the case where it might not by adding code (now removed) to pretend the handle wasn't present in the reply. I expect therefore that the 'skip_returned_stat' function that is added is rarely called. Fixed netfs_attempt_mkdir() to process the NFSv3 reply properly.
2 daysnfs: add support for NFSv3 in 'fetch_directory'Michael Kelly
4 daysnfs: Fix write encoding for v3Michael Kelly
4 daysnfs: Fix xdr_decode_fattr decoding for v3Michael Kelly
4 daysnfs: Clean xdr_encode/decode_64bitMichael Kelly
Better use the stdint. Also export them, they will be useful generally.
4 daysnfs: Fix pointer arithmeticMichael Kelly
7 daysprocfs: Make /proc/stat multi-cpu awareDamien Zammit
This allows top to show Cpu0 to CpuN idle stats when you press 1. TESTED: on UP and SMP gnumach with debian hurd-i386. Message-ID: <20250707092520.62819-1-damien@zamaudio.com>
11 daysMAKEDEV: Fix substitution not supported by dashSamuel Thibault
13 daysrumpusbdisk: Protect against a running rumpusbdisk.staticSamuel Thibault
13 daysdev: Fix ud[0-9] device nameSamuel Thibault
13 daysrumpdisk: Allow rumpusbdisk operate even when gnumach operates SATASamuel Thibault
rumpusbdisk's driving of USB sticks won't interfere with gnumach operating SATA.
13 daysrumpdisk: Support dynamic linkage of librumpDamien Zammit
This provides a functional rumpdisk and rumpusbdisk with or without static linkage of librump. Message-ID: <20250701141609.152652-1-damien@zamaudio.com>
14 daysconsole: Fix hardcoded message sizes for 64b caseSamuel Thibault
14 daysconsole-client vga: Avoid using optimized string operations on vga_videomemSamuel Thibault
The VGA boards may not like AVX-whatnot-optimized 512B accesses. E.g. qemu does not support it and raises an invalid opcode trap.
14 daysconsole-client ncursesw: Fix confusion between color pair and video attributeSamuel Thibault
COLOR_PAIR takes a color pair, it does not produce one.
2025-06-30MAKEDEV: Add /dev/ud* nodesDamien Zammit
that pass through to /dev/usbdisk.
2025-06-22libpager: raise RLIMIT_AS if permissions allow usDiego Nieto Cid
* libpager/demuxer.c(pager_start_workers): set current and max RLIMIT_AS to RLIM_INFINITY when the current user has access to the privileged host port. Message-ID: <20250616225815.844-2-dnietoc@gmail.com>
2025-06-22acpi: Ignore irq 9 requests because PIIX3 ACPI is wrongv0.9.git20250622Damien Zammit
Fall back to bios defaults for requests for irq 9. Ideally we could check the PIIX3 bridge device exists on pci, but that would require pci access before pci-arbiter exists. This is a convenient workaround for now. Message-ID: <20250622073557.188295-1-damien@zamaudio.com>
2025-06-11xkb: Make compose table load failure non-fatalSamuel Thibault
2025-06-03term: Use speed_t typeSamuel Thibault
2025-06-03procfs: Also make swap size use long longsSamuel Thibault
2025-06-03procfs: Fix meminfo value size for BuffersSamuel Thibault
This was offsetting all values on the parameters stack
2025-05-10pflocal: Do not inherit PFLOCAL_SOCK_NONBLOCK across connect/accept.Ludovic Courtès
Previously, ‘accept’ would return an O_NONBLOCK socket if the listening socket was O_NONBLOCK at the time the connection was made. With this change, ‘accept’ always returns a socket where O_NONBLOCK is cleared.
2025-05-05Fix IRC network nameSamuel Thibault
2025-05-03libshouldbeinlibc: Use 64bit mapped time values in maptime_read when possibleZhaoming Luo
Use 64bit mapped time values in maptime_read when the kernel and the mapped_time_value structure in header file time_value.h support it. Otherwise step back to use the 32bit time. Message-ID: <20250503132808.15359-1-zhmingluo@163.com>
2025-04-28ext2fs: fix crash on ENOSPCSamuel Thibault
54c0b9b9dbf7 ("ext2fs: Trap trying to access bogus data areas") added checks on the allocated block number, but did not take care of the out-of-space condition, which callers of ext2_new_block and ext2_alloc_block know to handle.
2025-04-19libdiskfs: Fix catching exceptionsv0.9.git20250420Samuel Thibault
This fixes making diskfs_catch_exception recursive, catching the last fault exception, and fixes callers.
2025-04-19MAKEDEV: Do not mount a tmpfs on /dev/shm for nowSamuel Thibault
tmpfs loses files when they are unlinked but still mapped.
2025-04-02Comment fixedZhaoming Luo
Message-ID: <20250402092354.293338-1-zhmingluo@163.com>
2025-03-18ext2fs: Always clean just-allocated inodeSamuel Thibault
So that if we get a lazily-cleaned inode, we do not get disturbed by the values, notably i_file_acl and i_dir_acl were not cleaned, and i_block_group not checked. b0ff48880bb40 ("Formerly ialloc.c.~6~") introduced only setting dn_set_ctime when cleanup was missing, but we always want to set the ctime for a new inode anyway.
2025-03-18ext2fs: extend end check for ext2_free_blocksSamuel Thibault
Since it can free more than one block.
2025-03-18ext2fs: Do not try to frob inline data for regular files and directoriesSamuel Thibault
Inline data in i_data is only used by symlinks (and apparently some device nodes in linux). For regular files and directories we don't store data there. This is actually important since otherwise int fd = open("foo.txt", O_WRONLY|O_CREAT); ftruncate(fd, 1024); ftruncate(fd, 10); leads to trying to frob beyond i_data end.
2025-03-18ext2fs: Trap trying to access bogus data areasSamuel Thibault
i.e. superblock, block group descriptor table or beyond the end.
2025-03-16tmpfs: also try to start the default pagerSamuel Thibault
initscripts apparently tries to mount /run before calling swapon
2025-03-13ext2fs: Trap trying to access bogus data areasSamuel Thibault
i.e. superblock, block group descriptor table or beyond the end.