From nobody Wed Jun 28 17:21:33 2023 X-Original-To: soc-status@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QrpKS3ZWbz4jr1P for ; Wed, 28 Jun 2023 17:21:48 +0000 (UTC) (envelope-from raghavself28@gmail.com) Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QrpKR27VYz3pHL for ; Wed, 28 Jun 2023 17:21:47 +0000 (UTC) (envelope-from raghavself28@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of raghavself28@gmail.com designates 209.85.166.48 as permitted sender) smtp.mailfrom=raghavself28@gmail.com; dmarc=none Received: by mail-io1-f48.google.com with SMTP id ca18e2360f4ac-7835bad99fbso6974939f.1 for ; Wed, 28 Jun 2023 10:21:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687972906; x=1690564906; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=3DKAyi7cyh+Qo/I5QT3BsArH8zVtLMHApnja2QkXYLc=; b=ZxOml15nPEbJkET1BaiZi7ya2PKutdTjT3KLjvNNgbP1EyIWQarVurztRIRXXuIGBa jghWxbzYSLMGis/DdcAl5uujQyF3XDcoljT32yFRbd2ZCyd1XDUHT70QoNwS0g4ZADSF DTmslHaPR2va07MJ2saPkX0iFVzc+/PS6+nn6534/f8qqXYBIPNUf9J8yGw0SIro2NsK Ye39pNlVx002bF+TSWUe7cNwirK07QwhzqshdYLQXwPVeGCi3TkFGUv1eSZhpZq2feAW qb3NzflCaX+KD0b/2HewgDJsdOT+pKDqgJ9DpBZzuoalVoDFvcphVsX5+DzJXPU5ezZi ivTw== X-Gm-Message-State: AC+VfDxld7fkn8He41HLnKLn53Sy3ZRB4FQAVo1cciL9dWWANB1/3KnT pd14aPUfbAJk6TkLNVhhIHSDKwJmvCI= X-Google-Smtp-Source: ACHHUZ6iOTbO6rXF9u6hGoOian0S/FSglnkaX7ixgVc2/7pzYrkpyaKco+O6FaMmCuHy4bdRzEZgrw== X-Received: by 2002:a6b:6807:0:b0:783:57a0:612c with SMTP id d7-20020a6b6807000000b0078357a0612cmr11398399ioc.10.1687972905709; Wed, 28 Jun 2023 10:21:45 -0700 (PDT) Received: from mail-il1-f173.google.com (mail-il1-f173.google.com. [209.85.166.173]) by smtp.gmail.com with ESMTPSA id f21-20020a02a815000000b0042683fb069csm3442888jaj.46.2023.06.28.10.21.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Jun 2023 10:21:45 -0700 (PDT) Received: by mail-il1-f173.google.com with SMTP id e9e14a558f8ab-345d3c10bdfso855625ab.2 for ; Wed, 28 Jun 2023 10:21:45 -0700 (PDT) X-Received: by 2002:a92:d94d:0:b0:345:b3f3:d560 with SMTP id l13-20020a92d94d000000b00345b3f3d560mr6408524ilq.18.1687972905182; Wed, 28 Jun 2023 10:21:45 -0700 (PDT) List-Id: Summer of Code Status Reports and Discussion List-Archive: https://lists.freebsd.org/archives/soc-status List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-soc-status@freebsd.org X-BeenThere: soc-status@freebsd.org MIME-Version: 1.0 From: Raghav Sharma Date: Wed, 28 Jun 2023 22:51:33 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [Week 3-4] Squashfs port status report To: soc-status@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Result: default: False [-2.16 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.997]; NEURAL_HAM_SHORT(-0.90)[-0.904]; FORGED_SENDER(0.30)[raghav@freebsd.org,raghavself28@gmail.com]; NEURAL_HAM_MEDIUM(-0.26)[-0.256]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_NONE(0.00)[209.85.166.48:from,209.85.166.173:received]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[raghav@freebsd.org,raghavself28@gmail.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[soc-status@freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.166.48:from]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[soc-status@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DOM_EQ_FROM_DOM(0.00)[] X-Rspamd-Queue-Id: 4QrpKR27VYz3pHL X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N Hello! In the past two weeks, a lot of Squashfs internal work has been completed which includes: * Decompressor support - Since the Linux kernel already deprecated uncompressed squashfs image support it was natural for me to first add block decompressor support. Squashfs compresses inodes, data blocks, and directory blocks through compression algorithms like zlib, lzo2, zstd, etc... I added decompression support for all types of compression that Squashfs supports. * Block read API - This API call will be made to read data block at particular position in squashfs disk file to buffer. It will handle decompression, metadata, and data reading of blocks, and return the resultant buffer. In further work cache support can be added on top of these functions. * Tables initialization - Squashfs uses a table to store inode_numbers, lookups, inodes, xattrs, etc... so completed support for it. All necessary tables are now in the struct sqsh_mount structure. * Inode initialization/read - All types of inodes supported by squashfs can now be read. I use the structure present in the Fuse implementation as it was better than Linux one. Note that while compiling build errors might occur due to the absence of decompressor header files like zlib etc... Since I added all decompressor types support I installed them on my FreeBSD local system but it might fail for someone who doesn't have it. I think later we need to look for a way to set up flags during compilation if the user system has the necessary header files or not. Anyways we are able to generate squashfs.ko module and I will be wrapping up mount(8) work this week. Thanks Raghav