Skip to contentSkip to conversation

Question about multiple scratch mount points

DISCUSSION Guilherme G. Piccoli 2 participants 3 messages Aug 30, 2023 – Sep 4, 2023

lore
Share & tools
lore
#0 lore raw

Hi folks, I am new at fstests development so I have a question that...might be silly, apologies in advance!

How should I require to have 2 scratch mnt points for some test? I'm not sure if necessary: what I'd like to accomplish is to mount the same filesystem (present in the scratch device) twice, in different mount points. One idea would be to just mkdir 2 folders under $SCRATCH_MNT/, but I'm not sure if it's guaranteed to be writable before any mounts happen.

Suggestions are appreciated! Also, sent here since I don't really know other forms of seeking help, tried IRC before without success. Thanks in advance,

Guilherme

#1 lore raw
Quoted 8 lines · Guilherme G. Piccoli

Hi folks, I am new at fstests development so I have a question that...might be silly, apologies in advance!

How should I require to have 2 scratch mnt points for some test? I'm not sure if necessary: what I'd like to accomplish is to mount the same filesystem (present in the scratch device) twice, in different mount points. One idea would be to just mkdir 2 folders under $SCRATCH_MNT/, but I'm not sure if it's guaranteed to be writable before any mounts happen.

We can use $SCRATCH_MNT and $TEST_MNT/$seq/mnt_copy as showen in the proposed test case.

HTH
-Anand

Quoted 6 lines

Suggestions are appreciated! Also, sent here since I don't really know other forms of seeking help, tried IRC before without success. Thanks in advance,

Guilherme

#2 lore raw
Quoted 10 lines · Anand Jain
Quoted 8 lines · Guilherme G. Piccoli

Hi folks, I am new at fstests development so I have a question that...might be silly, apologies in advance!

How should I require to have 2 scratch mnt points for some test? I'm not sure if necessary: what I'd like to accomplish is to mount the same filesystem (present in the scratch device) twice, in different mount points. One idea would be to just mkdir 2 folders under $SCRATCH_MNT/, but I'm not sure if it's guaranteed to be writable before any mounts happen.

Quoted 6 lines

We can use $SCRATCH_MNT and $TEST_MNT/$seq/mnt_copy as showen in the proposed test case.

HTH
-Anand

Thanks a bunch Anand!