Rev 4358 | Rev 4370 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4358 | Rev 4359 | ||
---|---|---|---|
Line 553... | Line 553... | ||
553 | block_t *b; |
553 | block_t *b; |
554 | 554 | ||
555 | if (!parentp) |
555 | if (!parentp) |
556 | return EBUSY; |
556 | return EBUSY; |
557 | 557 | ||
- | 558 | if (fat_has_children(cfn)) |
|
- | 559 | return ENOTEMPTY; |
|
- | 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); |
562 | bs = block_bb_get(childp->idx->dev_handle); |
565 | bs = block_bb_get(childp->idx->dev_handle); |