QEMU-Devel Archive on lore.kernel.org
 help / color / Atom feed
* [Bug 304636] Re: -hda FAT:. limited to 504MBytes
       [not found] <20081203025459.23099.79789.malonedeb@gangotri.canonical.com>
@ 2021-02-07  0:33 ` Pedro Pablo Lopez Rodriguez
  2021-02-08 22:20 ` Bryce Harrington
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: Pedro Pablo Lopez Rodriguez @ 2021-02-07  0:33 UTC (permalink / raw)
  To: qemu-devel

Hello.

I am using qemu-5.2.0 in Windows with operating system Minix 3.1.2a and
vfat fail to write files of size over 4096 bytes. The read works well.
This is not ploblem of Minix 3.1.2a because in Bochs emulator reads an
writes of files of any size works well.

I also consider this to be a major bug as it prevents communication of
information between the guest OS and the host. I have over 300 students
complaining about this bug present in qemu.

Thanks.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/304636

Title:
  -hda FAT:. limited to 504MBytes

Status in QEMU:
  Confirmed
Status in qemu package in Ubuntu:
  Won't Fix

Bug description:
  Binary package hint: qemu

  The size of the virtual FAT file system (for sharing a particular directory with Guest OS) is hard-coded to be limited to 504MBytes, in block-vvfat.c
  --
  /* 504MB disk*/
  bs->cyls=1024; bs->heads=16; bs->secs=63;
  --

  If the directory contents exceeds this is stops with an assert
  --
  qemu: block-vvfat.c:97: array_get: Assertion `index < array->next' failed.
  Aborted
  --

  Also the FAT16 mode (default) only uses 8KByte cluster sizes which prevents the above being increased. 16KByte and 32KByte sectors can be selected with the following patch
  --
  --- block-vvfat.c_orig  2008-12-02 12:37:28.000000000 -0700
  +++ block-vvfat.c       2008-12-02 19:50:35.000000000 -0700
  @@ -1042,6 +1042,12 @@
          s->fat_type = 32;
       } else if (strstr(dirname, ":16:")) {
          s->fat_type = 16;
  +    } else if (strstr(dirname, ":16-16K:")) {
  +       s->fat_type = 16;
  +       s->sectors_per_cluster=0x20;
  +    } else if (strstr(dirname, ":16-32K:")) {
  +       s->fat_type = 16;
  +       s->sectors_per_cluster=0x40;
       } else if (strstr(dirname, ":12:")) {
          s->fat_type = 12;
          s->sector_count=2880;
  --

  Cheers,
  Mungewell

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/304636/+subscriptions


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 304636] Re: -hda FAT:. limited to 504MBytes
       [not found] <20081203025459.23099.79789.malonedeb@gangotri.canonical.com>
  2021-02-07  0:33 ` [Bug 304636] Re: -hda FAT:. limited to 504MBytes Pedro Pablo Lopez Rodriguez
@ 2021-02-08 22:20 ` Bryce Harrington
  2021-02-09 14:10 ` Thomas Huth
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: Bryce Harrington @ 2021-02-08 22:20 UTC (permalink / raw)
  To: qemu-devel

Hi Pedro,

Sorry to hear of your difficulty, but given the age of this bug report,
I'd strongly urge you to file a new bug report.  Since this was last
looked at over 10 years ago, it's extremely likely your issue is
completely unrelated to the originally reported one.

Here are a couple pages on how to write effective bug reports, that I'd
encourage reading to ensure your report is actionable and can
(hopefully) get resolved expediently:

  * https://help.ubuntu.com/community/ReportingBugs
  * https://ubuntu.com/server/docs/reporting-bugs

A few other tips specific to qemu (per the upstream bug tracker):

  * Include the QEMU release version or the git commit hash into the description, so that it is later still clear in which version you have found the bug. Reports against the latest release or even the latest development tree are usually acted upon faster.
  * Include the full command line used to launch the QEMU guest.
  * Reproduce the problem directly with a QEMU command-line. Avoid frontends and management stacks, to ensure that the bug is in QEMU itself and not in a frontend.
  * Include information about the host and guest (operating system, version, 32/64-bit).

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/304636

Title:
  -hda FAT:. limited to 504MBytes

Status in QEMU:
  Confirmed
Status in qemu package in Ubuntu:
  Won't Fix

Bug description:
  Binary package hint: qemu

  The size of the virtual FAT file system (for sharing a particular directory with Guest OS) is hard-coded to be limited to 504MBytes, in block-vvfat.c
  --
  /* 504MB disk*/
  bs->cyls=1024; bs->heads=16; bs->secs=63;
  --

  If the directory contents exceeds this is stops with an assert
  --
  qemu: block-vvfat.c:97: array_get: Assertion `index < array->next' failed.
  Aborted
  --

  Also the FAT16 mode (default) only uses 8KByte cluster sizes which prevents the above being increased. 16KByte and 32KByte sectors can be selected with the following patch
  --
  --- block-vvfat.c_orig  2008-12-02 12:37:28.000000000 -0700
  +++ block-vvfat.c       2008-12-02 19:50:35.000000000 -0700
  @@ -1042,6 +1042,12 @@
          s->fat_type = 32;
       } else if (strstr(dirname, ":16:")) {
          s->fat_type = 16;
  +    } else if (strstr(dirname, ":16-16K:")) {
  +       s->fat_type = 16;
  +       s->sectors_per_cluster=0x20;
  +    } else if (strstr(dirname, ":16-32K:")) {
  +       s->fat_type = 16;
  +       s->sectors_per_cluster=0x40;
       } else if (strstr(dirname, ":12:")) {
          s->fat_type = 12;
          s->sector_count=2880;
  --

  Cheers,
  Mungewell

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/304636/+subscriptions


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 304636] Re: -hda FAT:. limited to 504MBytes
       [not found] <20081203025459.23099.79789.malonedeb@gangotri.canonical.com>
  2021-02-07  0:33 ` [Bug 304636] Re: -hda FAT:. limited to 504MBytes Pedro Pablo Lopez Rodriguez
  2021-02-08 22:20 ` Bryce Harrington
@ 2021-02-09 14:10 ` Thomas Huth
  2021-02-09 14:29 ` Daniel Berrange
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: Thomas Huth @ 2021-02-09 14:10 UTC (permalink / raw)
  To: qemu-devel

Pedro,
please also note that vvfat driver is general in a bad state and more or less completely unmaintaind. I can only strongly recommend to *not* use it in production. If you have to share files between guest and host, please use something more modern like virtio-fs (or maybe virtio-9p) instead.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/304636

Title:
  -hda FAT:. limited to 504MBytes

Status in QEMU:
  Confirmed
Status in qemu package in Ubuntu:
  Won't Fix

Bug description:
  Binary package hint: qemu

  The size of the virtual FAT file system (for sharing a particular directory with Guest OS) is hard-coded to be limited to 504MBytes, in block-vvfat.c
  --
  /* 504MB disk*/
  bs->cyls=1024; bs->heads=16; bs->secs=63;
  --

  If the directory contents exceeds this is stops with an assert
  --
  qemu: block-vvfat.c:97: array_get: Assertion `index < array->next' failed.
  Aborted
  --

  Also the FAT16 mode (default) only uses 8KByte cluster sizes which prevents the above being increased. 16KByte and 32KByte sectors can be selected with the following patch
  --
  --- block-vvfat.c_orig  2008-12-02 12:37:28.000000000 -0700
  +++ block-vvfat.c       2008-12-02 19:50:35.000000000 -0700
  @@ -1042,6 +1042,12 @@
          s->fat_type = 32;
       } else if (strstr(dirname, ":16:")) {
          s->fat_type = 16;
  +    } else if (strstr(dirname, ":16-16K:")) {
  +       s->fat_type = 16;
  +       s->sectors_per_cluster=0x20;
  +    } else if (strstr(dirname, ":16-32K:")) {
  +       s->fat_type = 16;
  +       s->sectors_per_cluster=0x40;
       } else if (strstr(dirname, ":12:")) {
          s->fat_type = 12;
          s->sector_count=2880;
  --

  Cheers,
  Mungewell

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/304636/+subscriptions


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 304636] Re: -hda FAT:. limited to 504MBytes
       [not found] <20081203025459.23099.79789.malonedeb@gangotri.canonical.com>
                   ` (2 preceding siblings ...)
  2021-02-09 14:10 ` Thomas Huth
@ 2021-02-09 14:29 ` Daniel Berrange
  2021-04-20 16:00 ` Thomas Huth
  2021-05-01  8:25 ` Thomas Huth
  5 siblings, 0 replies; 6+ messages in thread
From: Daniel Berrange @ 2021-02-09 14:29 UTC (permalink / raw)
  To: qemu-devel

If you need OS portability then the "usb-mtp" device is also an option
for adhoc file sharing.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/304636

Title:
  -hda FAT:. limited to 504MBytes

Status in QEMU:
  Confirmed
Status in qemu package in Ubuntu:
  Won't Fix

Bug description:
  Binary package hint: qemu

  The size of the virtual FAT file system (for sharing a particular directory with Guest OS) is hard-coded to be limited to 504MBytes, in block-vvfat.c
  --
  /* 504MB disk*/
  bs->cyls=1024; bs->heads=16; bs->secs=63;
  --

  If the directory contents exceeds this is stops with an assert
  --
  qemu: block-vvfat.c:97: array_get: Assertion `index < array->next' failed.
  Aborted
  --

  Also the FAT16 mode (default) only uses 8KByte cluster sizes which prevents the above being increased. 16KByte and 32KByte sectors can be selected with the following patch
  --
  --- block-vvfat.c_orig  2008-12-02 12:37:28.000000000 -0700
  +++ block-vvfat.c       2008-12-02 19:50:35.000000000 -0700
  @@ -1042,6 +1042,12 @@
          s->fat_type = 32;
       } else if (strstr(dirname, ":16:")) {
          s->fat_type = 16;
  +    } else if (strstr(dirname, ":16-16K:")) {
  +       s->fat_type = 16;
  +       s->sectors_per_cluster=0x20;
  +    } else if (strstr(dirname, ":16-32K:")) {
  +       s->fat_type = 16;
  +       s->sectors_per_cluster=0x40;
       } else if (strstr(dirname, ":12:")) {
          s->fat_type = 12;
          s->sector_count=2880;
  --

  Cheers,
  Mungewell

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/304636/+subscriptions


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 304636] Re: -hda FAT:. limited to 504MBytes
       [not found] <20081203025459.23099.79789.malonedeb@gangotri.canonical.com>
                   ` (3 preceding siblings ...)
  2021-02-09 14:29 ` Daniel Berrange
@ 2021-04-20 16:00 ` Thomas Huth
  2021-05-01  8:25 ` Thomas Huth
  5 siblings, 0 replies; 6+ messages in thread
From: Thomas Huth @ 2021-04-20 16:00 UTC (permalink / raw)
  To: qemu-devel

** Tags added: block

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/304636

Title:
  -hda FAT:. limited to 504MBytes

Status in QEMU:
  Confirmed
Status in qemu package in Ubuntu:
  Won't Fix

Bug description:
  Binary package hint: qemu

  The size of the virtual FAT file system (for sharing a particular directory with Guest OS) is hard-coded to be limited to 504MBytes, in block-vvfat.c
  --
  /* 504MB disk*/
  bs->cyls=1024; bs->heads=16; bs->secs=63;
  --

  If the directory contents exceeds this is stops with an assert
  --
  qemu: block-vvfat.c:97: array_get: Assertion `index < array->next' failed.
  Aborted
  --

  Also the FAT16 mode (default) only uses 8KByte cluster sizes which prevents the above being increased. 16KByte and 32KByte sectors can be selected with the following patch
  --
  --- block-vvfat.c_orig  2008-12-02 12:37:28.000000000 -0700
  +++ block-vvfat.c       2008-12-02 19:50:35.000000000 -0700
  @@ -1042,6 +1042,12 @@
          s->fat_type = 32;
       } else if (strstr(dirname, ":16:")) {
          s->fat_type = 16;
  +    } else if (strstr(dirname, ":16-16K:")) {
  +       s->fat_type = 16;
  +       s->sectors_per_cluster=0x20;
  +    } else if (strstr(dirname, ":16-32K:")) {
  +       s->fat_type = 16;
  +       s->sectors_per_cluster=0x40;
       } else if (strstr(dirname, ":12:")) {
          s->fat_type = 12;
          s->sector_count=2880;
  --

  Cheers,
  Mungewell

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/304636/+subscriptions


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 304636] Re: -hda FAT:. limited to 504MBytes
       [not found] <20081203025459.23099.79789.malonedeb@gangotri.canonical.com>
                   ` (4 preceding siblings ...)
  2021-04-20 16:00 ` Thomas Huth
@ 2021-05-01  8:25 ` Thomas Huth
  5 siblings, 0 replies; 6+ messages in thread
From: Thomas Huth @ 2021-05-01  8:25 UTC (permalink / raw)
  To: qemu-devel

This bug report has been moved to QEMU's new bug tracker on gitlab.com
and thus gets now closed in Launchpad. Please continue with the
discussion here:

 https://gitlab.com/qemu-project/qemu/-/issues/66

** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #66
   https://gitlab.com/qemu-project/qemu/-/issues/66

** Changed in: qemu
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/304636

Title:
  -hda FAT:. limited to 504MBytes

Status in QEMU:
  Invalid
Status in qemu package in Ubuntu:
  Won't Fix

Bug description:
  Binary package hint: qemu

  The size of the virtual FAT file system (for sharing a particular directory with Guest OS) is hard-coded to be limited to 504MBytes, in block-vvfat.c
  --
  /* 504MB disk*/
  bs->cyls=1024; bs->heads=16; bs->secs=63;
  --

  If the directory contents exceeds this is stops with an assert
  --
  qemu: block-vvfat.c:97: array_get: Assertion `index < array->next' failed.
  Aborted
  --

  Also the FAT16 mode (default) only uses 8KByte cluster sizes which prevents the above being increased. 16KByte and 32KByte sectors can be selected with the following patch
  --
  --- block-vvfat.c_orig  2008-12-02 12:37:28.000000000 -0700
  +++ block-vvfat.c       2008-12-02 19:50:35.000000000 -0700
  @@ -1042,6 +1042,12 @@
          s->fat_type = 32;
       } else if (strstr(dirname, ":16:")) {
          s->fat_type = 16;
  +    } else if (strstr(dirname, ":16-16K:")) {
  +       s->fat_type = 16;
  +       s->sectors_per_cluster=0x20;
  +    } else if (strstr(dirname, ":16-32K:")) {
  +       s->fat_type = 16;
  +       s->sectors_per_cluster=0x40;
       } else if (strstr(dirname, ":12:")) {
          s->fat_type = 12;
          s->sector_count=2880;
  --

  Cheers,
  Mungewell

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/304636/+subscriptions


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, back to index

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20081203025459.23099.79789.malonedeb@gangotri.canonical.com>
2021-02-07  0:33 ` [Bug 304636] Re: -hda FAT:. limited to 504MBytes Pedro Pablo Lopez Rodriguez
2021-02-08 22:20 ` Bryce Harrington
2021-02-09 14:10 ` Thomas Huth
2021-02-09 14:29 ` Daniel Berrange
2021-04-20 16:00 ` Thomas Huth
2021-05-01  8:25 ` Thomas Huth

QEMU-Devel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/qemu-devel/0 qemu-devel/git/0.git
	git clone --mirror https://lore.kernel.org/qemu-devel/1 qemu-devel/git/1.git
	git clone --mirror https://lore.kernel.org/qemu-devel/2 qemu-devel/git/2.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 qemu-devel qemu-devel/ https://lore.kernel.org/qemu-devel \
		qemu-devel@nongnu.org
	public-inbox-index qemu-devel

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.nongnu.qemu-devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git