linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* UBIFS: unlink failure
@ 2012-06-12 21:56 Richard Weinberger
  2012-06-26 14:26 ` Artem Bityutskiy
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Weinberger @ 2012-06-12 21:56 UTC (permalink / raw)
  To: dedekind1; +Cc: linux-mtd, linux-fsdevel

Hi!

While testing UBI fastmap I encountered a problem.
After multiple writes unlink fails.

This is my test case:
---cut---
function do_mount_write1()
{
        ubiattach -m 0 /dev/ubi_ctrl
        mount /dev/ubi0_0 /mnt/ -t ubifs
        dd if=/dev/urandom of=/mnt/x bs=1M count=1
        dd if=/dev/urandom of=/mnt/x bs=1M count=2
        dd if=/dev/urandom of=/mnt/x bs=1M count=10
        dd if=/dev/urandom of=/mnt/x bs=1M count=30
        rm x
        umount /mnt
        ubidetach -m 0 /dev/ubi_ctrl
}

flash_eraseall /dev/mtd0

ubiattach -m 0 /dev/ubi_ctrl
ubimkvol -N test -s 100MiB /dev/ubi0
mkfs.ubifs /dev/ubi0_0
ubidetach -m 0 /dev/ubi_ctrl

do_mount_write1
---cut---

rm does newfstatat() and unlinkat(), both fail with ENOENT.
The issue is 100% reproducible on a current kernel (3.4)
Adding a "sleep 10" before the rm does _not_ help.

Thanks,
//richard


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

end of thread, other threads:[~2012-06-26 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-12 21:56 UBIFS: unlink failure Richard Weinberger
2012-06-26 14:26 ` Artem Bityutskiy
2012-06-26 14:28   ` Richard Weinberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).