• # Meme partition

    Posté par . En réponse au journal mv ?. Évalué à 4.

    Pour savoir si 2 fichiers sont sur une meme partition: man 2 stat

    They all return a stat structure, which contains the following fields:

    struct stat {
    dev_t st_dev; /* device */
    [...]
    y a plus qu'à comparer st_dev.