Rev 4358 | Rev 4370 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4358 | Rev 4359 | ||
|---|---|---|---|
| Line 552... | Line 552... | ||
| 552 | uint16_t bps; |
552 | uint16_t bps; |
| 553 | block_t *b; |
553 | block_t *b; |
| 554 | 554 | ||
| 555 | if (!parentp) |
555 | if (!parentp) |
| 556 | return EBUSY; |
556 | return EBUSY; |
| - | 557 | ||
| - | 558 | if (fat_has_children(cfn)) |
|
| - | 559 | return ENOTEMPTY; |
|
| 557 | 560 | ||
| 558 | futex_down(&parentp->lock); |
561 | futex_down(&parentp->lock); |
| 559 | futex_down(&childp->lock); |
562 | futex_down(&childp->lock); |
| 560 | assert(childp->lnkcnt == 1); |
563 | assert(childp->lnkcnt == 1); |
| 561 | futex_down(&childp->idx->lock); |
564 | futex_down(&childp->idx->lock); |