From owner-freebsd-fs@freebsd.org Fri Aug 17 17:01:48 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB6201075913 for ; Fri, 17 Aug 2018 17:01:47 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-io0-f170.google.com (mail-io0-f170.google.com [209.85.223.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 90BFC8A01A for ; Fri, 17 Aug 2018 17:01:47 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-io0-f170.google.com with SMTP id l14-v6so7439970iob.7 for ; Fri, 17 Aug 2018 10:01:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=OA9LUFfayolREWdqYDIPsqTV30rIcvaeKrY+cZkw0os=; b=t5Q/j1waS013bBrbicBe977jUjvvR3MrQfPlDACx507QjxjmOmRIP8+GgSoe93uDBJ fRYXzdKPbAZkyn3PODw1q29lsgeqtgJrbjZiRXR2Ax/+ygV0u/Fhw8P8W1V3ZCNNHJ7k blq1Jdoez08DMSSr/DkUAoH0uzUtxB3LFl7XSRJusiN9Xw3SWAZoiUJXPOhVxizPM6u4 P/89TQjJkx0toHGLXgu3fpyLLwqL9L+MMnMpIUGLBaOrKHZmER2wlEf6vm22wI/4Jfb0 lrEG2UbcmQqdOkGzogTu+BEFkpYXuzbkEvnw9t9qs+NvMpNmdwifLwJKO2tNiOZ9xFGe lx+Q== X-Gm-Message-State: AOUpUlFGjKWgBde1RZs7hQLoRjDk9POhfFkIgXRwZcX+qGPVgL9yNCD0 U440oZRwPfexpGAivWgrZn7mHox9 X-Google-Smtp-Source: AA+uWPwuKztRQPzyBBL1avTqPSygZemhUNNRYPoMLFMfNLvLXO+yBXwi4yeyJ5yixtnNlxJfdo8cfw== X-Received: by 2002:a6b:f80e:: with SMTP id o14-v6mr12326251ioh.139.1534525300800; Fri, 17 Aug 2018 10:01:40 -0700 (PDT) Received: from mail-it0-f42.google.com (mail-it0-f42.google.com. [209.85.214.42]) by smtp.gmail.com with ESMTPSA id x197-v6sm2594356itb.5.2018.08.17.10.01.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Aug 2018 10:01:40 -0700 (PDT) Received: by mail-it0-f42.google.com with SMTP id h20-v6so12601596itf.2 for ; Fri, 17 Aug 2018 10:01:40 -0700 (PDT) X-Received: by 2002:a24:715:: with SMTP id f21-v6mr25084979itf.92.1534525300081; Fri, 17 Aug 2018 10:01:40 -0700 (PDT) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 2002:a02:b472:0:0:0:0:0 with HTTP; Fri, 17 Aug 2018 10:01:39 -0700 (PDT) In-Reply-To: <20180817.172713.1462611697013497228.ish@amail.plala.or.jp> References: <20180817.172713.1462611697013497228.ish@amail.plala.or.jp> From: Conrad Meyer Date: Fri, 17 Aug 2018 10:01:39 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How to mount ISO-9660 multi-extents blu-ray disc To: Masachika ISHIZUKA Cc: freebsd-fs Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2018 17:01:48 -0000 Thanks for the report. It looks like classic 32-bit truncation is happening somewhere on the file size: $ printf "%x\n" 5368709120 140000000 $ printf "%x\n" 1073741824 40000000 This is at least in part due to the inode i_size being a (32-bit) unsigned long. i_size is initialized by isonum_733(isodir->size) in cd9660_vget_internal(), which decodes a 32-bit little endian number. So i_size needs to be expanded, and there may be additional logic needed to enumerate size information for files larger than 4GB. This is a deficiency in cd9660 that I don't believe can be addressed with a mount time option, so if possible, please file a PR in bugzilla to track this. Thank you, Conrad On Fri, Aug 17, 2018 at 1:27 AM, Masachika ISHIZUKA wrote: > Hi. > > I was written 5gb file on bru-ray disc by growisofs with linux. > I want to mount it with freebsd, but only last extent of file is > shown as follows. > > freebsd# mount -t cd9660 /dev/cd0 /cdrom > freebsd# ls -l /cdrom/test/ > total 1048576 > -rw-r--r-- 1 root wheel 1073741824 Aug 17 16:58 test5g > > On the other hand, linux can handle multi-extents disc as follows. > > ubuntu# mount /dev/sr0 /cdrom > ubuntu# ls -l /cdrom/test/ > total 5242880 > -r--r--r-- 1 nobody nogroup 5368709120 Aug 17 16:58 test5g > > How can I mount multi-extents disc with freebsd ? > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"